Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #21 from jmesmon/master

Fix transposition of memset arguments.
  • Loading branch information...
commit a9cfd090119385a1ef973baf94342a2db20595b9 2 parents 709646d + b60b492
@darkk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  utils.c
View
2  utils.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.