From: Ben Gras Date: Sun, 24 Jul 2005 01:18:39 +0000 (+0000) Subject: Let writeisofs write files longer than 11 chars X-Git-Tag: v3.1.0~550 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/tz-art.htm?a=commitdiff_plain;h=2283a4e5c38255dd46cba0a2e8cbaaee537d2dae;p=minix.git Let writeisofs write files longer than 11 chars --- diff --git a/commands/simple/writeisofs.c b/commands/simple/writeisofs.c index dca640cdc..f4d0a2ed1 100644 --- a/commands/simple/writeisofs.c +++ b/commands/simple/writeisofs.c @@ -31,7 +31,7 @@ typedef unsigned long int u_int32_t; #include #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';