summaryrefslogtreecommitdiff
path: root/source3/lib/interface.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-02 16:31:16 -0700
committerJeremy Allison <jra@samba.org>2008-07-02 16:31:16 -0700
commit12f0163e26e6c39ba13335468b7a1bef4cf29e73 (patch)
tree66887a07f66a7935c12305254c47036bf5a0784f /source3/lib/interface.c
parent7cd752bce353923ed10a47670bc4e184f0aa6b8c (diff)
downloadsamba-12f0163e26e6c39ba13335468b7a1bef4cf29e73.tar.gz
samba-12f0163e26e6c39ba13335468b7a1bef4cf29e73.tar.bz2
samba-12f0163e26e6c39ba13335468b7a1bef4cf29e73.zip
Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>. Jeremy. (This used to be commit 3a7542fd495223c3a504571a52e2d00551fea0e2)
Diffstat (limited to 'source3/lib/interface.c')
-rw-r--r--source3/lib/interface.c2
1 files changed, 1 insertions, 1 deletions
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;