This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix memset
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 21 Jun 2003 21:16:49 -0400
- Subject: [commit] Fix memset
From Ian. Should really ARI this.
Andrew
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.
Index: hw_nvram.c
===================================================================
RCS file: /cvs/src/src/sim/ppc/hw_nvram.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 hw_nvram.c
--- hw_nvram.c 16 Apr 1999 01:35:09 -0000 1.1.1.1
+++ hw_nvram.c 22 Jun 2003 01:15:27 -0000
@@ -140,7 +140,7 @@
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;