Fix an IPv6 breakage I introduced by adding an strlcpy truncation check. Found by...
commit786cb132e8f27e58e3ac90889f6ea1c997441bd6
authorJeremy Allison <jra@samba.org>
Sat, 31 Mar 2012 04:21:57 +0000 (30 21:21 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 31 Mar 2012 05:59:15 +0000 (31 07:59 +0200)
tree264946be0ba97023265196373ea3dab5b53e6bc6
parentefd94d159883cb0841d8ac83223a1e63098a8d72
Fix an IPv6 breakage I introduced by adding an strlcpy truncation check. Found by Matthieu Patou <mat@samba.org>.

The truncate of the strlcpy() here was a *desired* side effect.
strlcpy()/strlcat() should never be used like that. Be more
explicit about the truncation and don't use strlcpy here.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 31 07:59:16 CEST 2012 on sn-devel-104
lib/util/util_net.c