aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/hw_nvram.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-22 01:16:38 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-22 01:16:38 +0000
commit0f2f1341dd1af92650259b2f5728deff496162d1 (patch)
tree4462bc74e65a60dc62bb28caadb404d1d38d269b /sim/ppc/hw_nvram.c
parent61ca1de73aa68962b03cd954eeac560bf5287b05 (diff)
downloadfsf-binutils-gdb-0f2f1341dd1af92650259b2f5728deff496162d1.zip
fsf-binutils-gdb-0f2f1341dd1af92650259b2f5728deff496162d1.tar.gz
fsf-binutils-gdb-0f2f1341dd1af92650259b2f5728deff496162d1.tar.bz2
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.
Diffstat (limited to 'sim/ppc/hw_nvram.c')
-rw-r--r--sim/ppc/hw_nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/ppc/hw_nvram.c b/sim/ppc/hw_nvram.c
index 4c87d05..32308f7 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;