Permalink
Browse files

Merge pull request #21 from jmesmon/master

Fix transposition of memset arguments.
  • Loading branch information...
2 parents 709646d + b60b492 commit a9cfd090119385a1ef973baf94342a2db20595b9 @darkk committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 utils.c
View
@@ -222,7 +222,7 @@ char *red_inet_ntop(const struct sockaddr_in* sa, char* buffer, size_t buffer_si
assert(buffer_size >= sizeof(placeholder));
- memset(buffer, buffer_size, 0);
+ memset(buffer, 0, buffer_size);
if (sa->sin_family == AF_INET) {
retval = inet_ntop(AF_INET, &sa->sin_addr, buffer, buffer_size);
port = ((struct sockaddr_in*)sa)->sin_port;

0 comments on commit a9cfd09

Please sign in to comment.