summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/labs.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-07-20 09:05:15 +0000
committerbrian <brian@FreeBSD.org>2000-07-20 09:05:15 +0000
commit145f71945d245c592d771bd0138510d7bcb43f1a (patch)
tree977d504c42072179b35113c243b77b58524acc88 /lib/libc/stdlib/labs.c
parent93bac0087e1506b7c834bf6c6d364194717b2ecd (diff)
downloadFreeBSD-src-145f71945d245c592d771bd0138510d7bcb43f1a.zip
FreeBSD-src-145f71945d245c592d771bd0138510d7bcb43f1a.tar.gz
Alocate rcmd{,_af}()'s *ahost argument using malloc() (well
strdup()) rather than pointing it at something that's free()d (via freeaddrinfo(res)) before the function returns. I appreciate that this is an API change, but it's the only way (AFAIK) of doing this without breaking existing code that uses rcmd{,_af}(). Pointed out by: phkmalloc
Diffstat (limited to 'lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud