]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Include "strdup.h".
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Nov 2004 20:38:33 +0000 (20:38 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Nov 2004 20:38:33 +0000 (20:38 +0000)
commit4ec053b59d3fdb6c54e8aaff3b1147c10beec244
treec92959454fa58a91d329967ae874ad2e4b71ddac
parent5f2cb6ee450acbe5ba6196ec3df935683d3b3acc
Include "strdup.h".
(canon_host): Use getaddrinfo if available, so that IPv6 works.
Use strdup instead of malloc/strcpy to duplicate strings.
lib/canon-host.c