Dereference pointer.

This commit is contained in:
Mark Andrews
2000-01-28 05:39:40 +00:00
parent cbc3546515
commit 94e0696f4b
+1 -1
View File
@@ -44,7 +44,7 @@ print_he(struct hostent *he, int error, const char *fun, const char *name) {
i = 1;
while (*c != NULL) {
char buf[128];
inet_ntop(he->h_addrtype, c, buf, sizeof (buf));
inet_ntop(he->h_addrtype, *c, buf, sizeof (buf));
printf("\taddress[%d] = %s\n", i, buf);
c++;
i++;