Index: hostip.c =================================================================== RCS file: /cvsroot/curl/curl/lib/hostip.c,v retrieving revision 1.63 diff -r1.63 hostip.c 463a464,483 > static void hostcache_fixoffset(struct hostent *h, int offset) > { > int i=0; > h->h_name=(char *)((int)h->h_name+offset); > h->h_aliases=(char **)((int)h->h_aliases+offset); > while(h->h_aliases[i]) > { > h->h_aliases[i]=(char *)((int)h->h_aliases[i]+offset); > i++; > } > h->h_addr_list=(char **)((int)h->h_addr_list+offset); > i=0; > while(h->h_addr_list[i]) > { > h->h_addr_list[i]=(char *)((int)h->h_addr_list[i]+offset); > i++; > } > > } > 538c558,562 < buf=(int *)realloc(buf, step_size); --- > int offset; > h=(struct hostent *)realloc(buf, step_size); > offset=(int)h-(int)buf; > hostcache_fixoffset(h, offset); > buf=(int *)h; 558c582,586 < buf=(int *)realloc(buf, step_size); --- > int offset; > h=(struct hostent *)realloc(buf, step_size); > offset=(int)h-(int)buf; > hostcache_fixoffset(h, offset); > buf=(int *)h;