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-Tag: alpha_1_15_90~6 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=31ef7e3afbe471f657e0023c8da17a32259ca95e;p=debian%2Ftar (split_long_name): Fix maximum length estimation. Patch by Jim Lowe. --- diff --git a/src/create.c b/src/create.c index 41726613..f2db9c27 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;