bitkeeper revision 1.1159.258.80 (424baef1fEkcfSfQH4BQ1MHHtsEiYQ)

Fix memset arg ordering.
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-03-31 08:04:01 +00:00
1 parent bc328b062e
commit cb666ced1a
1 file changed
+1 -1
+1 -1
View File
@@ -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]);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.