Re: FW: buffer size calculation in gethostby_helper()

2011-08-12 Thread Jan Kolar
My final understanding is this: for each of address_count we use (and have to allocate) 1. addrsize_out of bytes in the "string" area of buffer 2. sizeof (char *) of bytes in the h_addr_list area of buffer Logically, For 2., both string_ptr and string_size should be untouched whi

Re: FW: buffer size calculation in gethostby_helper()

2011-08-12 Thread Jan Kolar
My final understanding is this: for each of address_count we use (and have to allocate) 1. addrsize_out of bytes in the "string" area of buffer 2. sizeof (char *) of bytes in the h_addr_list area of buffer Logically, For 1., both string_ptr and string_size should be untouched whi