From: Jeremy Allison Date: Wed, 2 Jul 2008 23:31:16 +0000 (-0700) Subject: Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface X-Git-Tag: samba-3.3.0pre1~693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a7542fd495223c3a504571a52e2d00551fea0e2;p=thirdparty%2Fsamba.git Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface name that's too long. Reported by James Kosin . Jeremy. --- diff --git a/source/lib/interface.c b/source/lib/interface.c index 9627bf63dd8..eb0af9ef341 100644 --- a/source/lib/interface.c +++ b/source/lib/interface.c @@ -469,7 +469,7 @@ static void interpret_interface(char *token) token)); ZERO_STRUCT(ifs); - safe_strcpy(ifs.name, token, sizeof(ifs.name)-1); + (void)strlcpy(ifs.name, token, sizeof(ifs.name)); ifs.flags = IFF_BROADCAST; ifs.ip = ss; ifs.netmask = ss_mask;