From 2283a4e5c38255dd46cba0a2e8cbaaee537d2dae Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 24 Jul 2005 01:18:39 +0000 Subject: [PATCH] Let writeisofs write files longer than 11 chars --- commands/simple/writeisofs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';