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

FW: buffer size calculation in gethostby_helper()

2011-08-12 Thread Pierre A. Humblet
[bounced message] Hi Jan, Thanks for your help. For some reason my message below is taking time to appear on Cygwin.com If it does not appear could you forward it? It's not the first time that that particular list ignores my messages :( By the way, if you still get an error with the fixes sugge