locale

2011-10-09 Thread Jan Kolar
Re: /cygwin-patches/ Add locale.exe option for querying Windows UI languages Corinna Vinschen-2 wrote in h t t p : old nabble com Add-locale.exe-option-for-querying-Windows-UI-languages-to32614984.html Therefore, afaics, it would be better if we change locale to use the

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

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

buffer size calculation in gethostby_helper()

2011-08-11 Thread Jan Kolar
Dear Corinna, Please note that in net.cc, some kind of string_size += addrsize_out; is missing somewhere, which affects a buffer allocation. See the two locations in diff. (I do not see well how the two loops (passes) communicate, which might well be the origin of the problem.)