Joren's proposed fix for a too-conservative split point selection.
(Making building packages with long filenames difficult.)
This commit is contained in:
parent
9939089dea
commit
b52a516521
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue