Skip to content

Instantly share code, notes, and snippets.

@skahack
Created October 20, 2010 15:15
Show Gist options
  • Save skahack/636606 to your computer and use it in GitHub Desktop.
Save skahack/636606 to your computer and use it in GitHub Desktop.
aget 0.4.1
--- Head.c 2009-05-12 14:22:42.000000000 +0900
+++ Head.c.new 2010-10-21 00:12:25.000000000 +0900
@@ -59,7 +59,7 @@
hstrerror(h_errno));
exit(1);
}
- strncpy(req->ip, inet_ntoa(*(struct in_addr *)he->h_addr), MAXIPSIZ);
+ strncpy(req->ip, inet_ntoa(*(struct in_addr *)he->h_addr_list[0]), MAXIPSIZ);
time(&t_start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment