mirror of
https://github.com/mirror/make.git
synced 2025-04-01 23:21:06 +08:00
* load.c (load_file): Reset the name length minus the symbol.
This commit is contained in:
parent
30b25acc4e
commit
865d90bb1e
1
load.c
1
load.c
@ -152,6 +152,7 @@ load_file (const gmk_floc *flocp, const char **ldname, int noerror)
|
|||||||
memcpy (new, *ldname, l);
|
memcpy (new, *ldname, l);
|
||||||
new[l] = '\0';
|
new[l] = '\0';
|
||||||
*ldname = new;
|
*ldname = new;
|
||||||
|
nmlen = l;
|
||||||
|
|
||||||
/* Make a copy of the symbol name part. */
|
/* Make a copy of the symbol name part. */
|
||||||
symname = new + l + 1;
|
symname = new + l + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user