ia64/xen-unstable

changeset 4393:4a09c134b726

bitkeeper revision 1.1159.258.80 (424baef1fEkcfSfQH4BQ1MHHtsEiYQ)

Fix memset arg ordering.
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 31 08:04:01 2005 +0000 (2005-03-31)
parents f89c43228c36
children 53caafa86fde deebfbea73d9
files tools/libxutil/sys_net.c
line diff
     1.1 --- a/tools/libxutil/sys_net.c	Thu Mar 31 07:53:37 2005 +0000
     1.2 +++ b/tools/libxutil/sys_net.c	Thu Mar 31 08:04:01 2005 +0000
     1.3 @@ -310,7 +310,7 @@ char *mac_ntoa(const unsigned char *mac)
     1.4      static char buf[MAC_LENGTH + 1];
     1.5      int buf_n = sizeof(buf);
     1.6  
     1.7 -    memset(buf, buf_n, 0);
     1.8 +    memset(buf, 0, buf_n);
     1.9      snprintf(buf, buf_n, "%02x:%02x:%02x:%02x:%02x:%02x",
    1.10               mac[0], mac[1], mac[2],
    1.11               mac[3], mac[4], mac[5]);