Skip to content

Instantly share code, notes, and snippets.

@shantanoo
Created August 12, 2013 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shantanoo/6209834 to your computer and use it in GitHub Desktop.
Save shantanoo/6209834 to your computer and use it in GitHub Desktop.
Index: Head.c
===================================================================
--- Head.c
+++ Head.c 2009-11-10 02:33:35.000000000 +0100
@@ -55,7 +55,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