]> Zhao Yanbai Git Server - minix.git/commitdiff
Let writeisofs write files longer than 11 chars
authorBen Gras <ben@minix3.org>
Sun, 24 Jul 2005 01:18:39 +0000 (01:18 +0000)
committerBen Gras <ben@minix3.org>
Sun, 24 Jul 2005 01:18:39 +0000 (01:18 +0000)
commands/simple/writeisofs.c

index dca640cdc3c7c82e29dbd1a5f68b38d42ab52522..f4d0a2ed15f93a3759fa7d4e8aa8243e239633ad 100644 (file)
@@ -31,7 +31,7 @@ typedef unsigned long int u_int32_t;
 #include <sys/stat.h>
 
 #define NAMELEN                (DIRSIZ+5)
-#define ISONAMELEN     11
+#define ISONAMELEN     12
 #define PLATFORM_80X86 0
 
 #define ISO_SECTOR 2048
@@ -523,7 +523,7 @@ write_direntry(char *origname, u_int32_t sector, u_int32_t size, int isdir,
                strcpy(copyname, origname);
                namelen = strlen(copyname);
 
-               if(namelen >= ISONAMELEN) {
+               if(namelen > ISONAMELEN) {
                        fprintf(stderr, "%s: truncated, too long for iso9660\n", copyname);
                        namelen = ISONAMELEN;
                        copyname[namelen] = '\0';