diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-22 01:16:38 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-22 01:16:38 +0000 |
commit | 6e9218af70a60047d874a99a09863955f9798895 (patch) | |
tree | 9994768156b41dae01b9420629ffcb8a140f1ba7 | |
parent | 3842b497db8317f7b56b6d6cba9258a9ab2a2261 (diff) | |
download | gdb-6e9218af70a60047d874a99a09863955f9798895.tar.gz |
2003-06-21 Andrew Cagney <cagney@redhat.com>
From Ian Lance Taylor <ian@airs.com>:
* hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap
second and third arguments.
-rw-r--r-- | sim/ppc/ChangeLog | 6 | ||||
-rw-r--r-- | sim/ppc/hw_nvram.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 7b100550db2..82844f23233 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,11 @@ 2003-06-21 Andrew Cagney <cagney@redhat.com> + From Ian Lance Taylor <ian@airs.com>: + * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap + second and third arguments. + +2003-06-21 Andrew Cagney <cagney@redhat.com> + * hw_com.c (hw_com_device_init_data): Check that the output, and not input file opened. Pointed out by masahino tky3.3web.ne.jp. diff --git a/sim/ppc/hw_nvram.c b/sim/ppc/hw_nvram.c index 4c87d05d9be..32308f754a0 100644 --- a/sim/ppc/hw_nvram.c +++ b/sim/ppc/hw_nvram.c @@ -140,7 +140,7 @@ hw_nvram_init_address(device *me) nvram->memory = zalloc(nvram->sizeof_memory); } else - memset(nvram->memory, nvram->sizeof_memory, 0); + memset(nvram->memory, 0, nvram->sizeof_memory); if (device_find_property(me, "timezone") == NULL) nvram->timezone = 0; |