From 6108b49c0a0681fb08882515d4d434fc173e7164 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 26 Nov 2001 01:19:06 +0000 Subject: [PATCH] (unexec): Index by n, not nn, when checking for ".sbss". --- src/ChangeLog | 2 ++ src/unexelf.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 36cf5d7f48..b06eac4304 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-11-25 Richard M. Stallman + * 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 32fdbc77cb..548465c0df 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 -- 2.39.2