1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

David LeBlanc corrected one of my mistakes

This commit is contained in:
Daniel Stenberg 2000-05-31 06:31:31 +00:00
parent 8d76ad6c8e
commit 980ee98ec9

View File

@ -113,7 +113,8 @@ struct hostent *GetHost(struct UrlData *data,
h->h_addr_list[1] = NULL;
h->h_addrtype = AF_INET;
h->h_length = sizeof(*addrentry);
h->h_name = (char*)(h->h_addr_list + h->h_length);
h->h_name = *(h->h_addr_list) + h->h_length;
/* bad one h->h_name = (char*)(h->h_addr_list + h->h_length); */
MakeIP(ntohl(in),h->h_name,buf_size - (long)(h->h_name) + (long)buf);
#if defined(HAVE_GETHOSTBYNAME_R)
}