Commit 980ee98e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

David LeBlanc corrected one of my mistakes

parent 8d76ad6c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)
  }