From 0f2f1341dd1af92650259b2f5728deff496162d1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 22 Jun 2003 01:16:38 +0000 Subject: [PATCH] 2003-06-21 Andrew Cagney From Ian Lance Taylor : * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap second and third arguments. --- sim/ppc/ChangeLog | 6 ++++++ sim/ppc/hw_nvram.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 7b100550db2..82844f23233 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,9 @@ +2003-06-21 Andrew Cagney + + From Ian Lance Taylor : + * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap + second and third arguments. + 2003-06-21 Andrew Cagney * hw_com.c (hw_com_device_init_data): Check that the output, and 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; -- 2.30.2