Skip to content

Commit

Permalink
Merge pull request #21 from jmesmon/master
Browse files Browse the repository at this point in the history
Fix transposition of memset arguments.
  • Loading branch information
darkk committed Apr 24, 2012
2 parents 709646d + b60b492 commit a9cfd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9cfd09

Please sign in to comment.