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:
parent
61ca1de73a
commit
0f2f1341dd
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue