From 31ef7e3afbe471f657e0023c8da17a32259ca95e Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 20 Feb 2006 09:41:29 +0000 Subject: [PATCH] (split_long_name): Fix maximum length estimation. Patch by Jim Lowe. --- src/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2