2003-06-21 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 22 Jun 2003 01:16:38 +0000 (01:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 22 Jun 2003 01:16:38 +0000 (01:16 +0000)
From Ian Lance Taylor <ian@airs.com>:
        * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap
        second and third arguments.

sim/ppc/ChangeLog
sim/ppc/hw_nvram.c

index 7b100550db27d2d4aa0c4ca6e11ac4af50fa0112..82844f23233e967ae05690fa0bd2cb9bda60a836 100644 (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
index 4c87d05d9be78806796b53b5f3bf3a46f4ef1caa..32308f754a06ddaef8be18c7d71367d7f91d071d 100644 (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;
This page took 0.02682 seconds and 4 git commands to generate.