[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix memset arg ordering.



ChangeSet 1.1159.256.80, 2005/03/31 09:04:01+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Fix memset arg ordering.



 sys_net.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/tools/libxutil/sys_net.c b/tools/libxutil/sys_net.c
--- a/tools/libxutil/sys_net.c  2005-03-31 04:04:31 -05:00
+++ b/tools/libxutil/sys_net.c  2005-03-31 04:04:31 -05:00
@@ -310,7 +310,7 @@
     static char buf[MAC_LENGTH + 1];
     int buf_n = sizeof(buf);
 
-    memset(buf, buf_n, 0);
+    memset(buf, 0, buf_n);
     snprintf(buf, buf_n, "%02x:%02x:%02x:%02x:%02x:%02x",
              mac[0], mac[1], mac[2],
              mac[3], mac[4], mac[5]);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.