xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable

Darren Tucker dtucker at zip.com.au
Fri May 5 08:28:13 EST 2006


Roumen Petrov wrote:
>> -    ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
>> +    ai = calloc(sizeof(*ai), sizeof(struct sockaddr_in));
> 
> Not sure

Yeah, that's definitely wrong.  I dropped that one but the rest have 
been applied.

Thanks.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list