Joren's proposed fix for a too-conservative split point selection.

(Making building packages with long filenames difficult.)
This commit is contained in:
Ben Gras 2006-07-10 15:05:33 +00:00
parent 9939089dea
commit b52a516521

View file

@ -1094,6 +1094,11 @@ name_split(char *name, int len)
* prefix we can find)
*/
start = name + len - TNMSZ - 1;
/* Don't split at first '/'. */
if (start == name && *start == '/')
++start;
while ((*start != '\0') && (*start != '/'))
++start;