summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog2
-rw-r--r--src/unexelf.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 36cf5d7f480..b06eac4304b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2001-11-25 Richard M. Stallman <rms@gnu.org>
+ * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
+
* callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
don't lose the data in it.
diff --git a/src/unexelf.c b/src/unexelf.c
index 32fdbc77cba..548465c0df9 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -1016,7 +1016,7 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
".sdata1")
|| !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
".data1")
- || !strcmp (old_section_names + NEW_SECTION_H (nn).sh_name,
+ || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
".sbss"))
src = (caddr_t) OLD_SECTION_H (n).sh_addr;
else