summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-11-24 04:03:19 -0500
committerPaul Smith <psmith@gnu.org>2013-11-24 04:03:19 -0500
commit865d90bb1e4500ad2147d85877fd496552fdbbf5 (patch)
tree2785351ff160b7f19640c6780c741309848ef5e0
parent30b25acc4ece3755314402954f2cb9abce348c3e (diff)
downloadgunmake-865d90bb1e4500ad2147d85877fd496552fdbbf5.tar.gz
* load.c (load_file): Reset the name length minus the symbol.
-rw-r--r--load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/load.c b/load.c
index 63f2aaf..b937c9f 100644
--- a/load.c
+++ b/load.c
@@ -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;