From: Sergey Poznyakoff Date: Mon, 20 Feb 2006 09:41:29 +0000 (+0000) Subject: (split_long_name): Fix maximum length estimation. Patch by Jim Lowe. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=31ef7e3afbe471f657e0023c8da17a32259ca95e;p=chaz%2Ftar (split_long_name): Fix maximum length estimation. Patch by Jim Lowe. --- diff --git a/src/create.c b/src/create.c index 4172661..f2db9c2 100644 --- a/src/create.c +++ b/src/create.c @@ -494,7 +494,7 @@ split_long_name (const char *name, size_t length) size_t i; if (length > PREFIX_FIELD_SIZE) - length = PREFIX_FIELD_SIZE+2; + length = PREFIX_FIELD_SIZE + 1; for (i = length - 1; i > 0; i--) if (ISSLASH (name[i])) break;