mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.258.80 (424baef1fEkcfSfQH4BQ1MHHtsEiYQ)
Fix memset arg ordering.
This commit is contained in:
1 parent
bc328b062e
commit
cb666ced1a
1 file changed
+1
-1
@@ -310,7 +310,7 @@ char *mac_ntoa(const unsigned char *mac){
|
||||
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]);
|
||||
|
||||