summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;