ChangeSet 1.1814, 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:08:00 -05:00
+++ b/tools/libxutil/sys_net.c 2005-03-31 04:08:00 -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
|