From e9117208e20934276266169c6b434a102371883e Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 1 Feb 2001 15:52:17 +0000 Subject: [PATCH] Test should be >= since we need space for the terminator. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268556 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/tar/TarOutputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/tar/TarOutputStream.java b/src/main/org/apache/tools/tar/TarOutputStream.java index 0d554fb00..29fba410b 100644 --- a/src/main/org/apache/tools/tar/TarOutputStream.java +++ b/src/main/org/apache/tools/tar/TarOutputStream.java @@ -164,7 +164,7 @@ public class TarOutputStream extends FilterOutputStream { * @param entry The TarEntry to be written to the archive. */ public void putNextEntry(TarEntry entry) throws IOException { - if (entry.getName().length() > TarConstants.NAMELEN) { + if (entry.getName().length() >= TarConstants.NAMELEN) { if (longFileMode == LONGFILE_GNU) { // create a TarEntry for the LongLink, the contents