git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2178b
)
Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
author
Jeremy Allison
<jra@samba.org>
Wed, 2 Jul 2008 23:31:16 +0000
(16:31 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 2 Jul 2008 23:31:16 +0000
(16:31 -0700)
name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>.
Jeremy.
source/lib/interface.c
patch
|
blob
|
history
diff --git
a/source/lib/interface.c
b/source/lib/interface.c
index 9627bf63dd8ea68ad84c5a6bdbc9113d3cb3b7e1..eb0af9ef341d85edcad4f5040738f98cc9cc6fef 100644
(file)
--- 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;