* load.c (load_file): Reset the name length minus the symbol.

This commit is contained in:
Paul Smith 2013-11-24 04:03:19 -05:00
parent 30b25acc4e
commit 865d90bb1e

1
load.c
View File

@ -152,6 +152,7 @@ load_file (const gmk_floc *flocp, const char **ldname, int noerror)
memcpy (new, *ldname, l);
new[l] = '\0';
*ldname = new;
nmlen = l;
/* Make a copy of the symbol name part. */
symname = new + l + 1;