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.
This commit is contained in:
Andrew Cagney 2003-06-22 01:16:38 +00:00
parent 61ca1de73a
commit 0f2f1341dd
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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;