From 12f0163e26e6c39ba13335468b7a1bef4cf29e73 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 2 Jul 2008 16:31:16 -0700 Subject: Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface name that's too long. Reported by James Kosin . Jeremy. (This used to be commit 3a7542fd495223c3a504571a52e2d00551fea0e2) --- source3/lib/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/interface.c b/source3/lib/interface.c index 9627bf63dd..eb0af9ef34 100644 --- a/source3/lib/interface.c +++ b/source3/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; -- cgit