summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-02 10:28:00 +0100
committerVolker Lendecke <vl@samba.org>2008-11-02 10:41:09 +0100
commitf120038a1fcb34f19394c93981d41825a7720949 (patch)
treeef16551ea9a4be7b46ecc14e3f16e7f5490f01ad
parentc6973e69b7756723618913a3ab57e3e145292e46 (diff)
downloadsamba-f120038a1fcb34f19394c93981d41825a7720949.tar.gz
samba-f120038a1fcb34f19394c93981d41825a7720949.tar.bz2
samba-f120038a1fcb34f19394c93981d41825a7720949.zip
Fix bug 5860: safe_strcpy gives a nasty error message for overlong strings
Thanks to Robert Dahlem <Robert.Dahlem@gmx.net> for reporting this!
-rw-r--r--source3/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index 360692c546..4d4d0dc5af 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -140,7 +140,7 @@ bool name_to_8_3(const char *in,
/* name mangling can be disabled for speed, in which case
we just truncate the string */
if (!lp_manglednames(p)) {
- safe_strcpy(out,in,12);
+ strlcpy(out, in, 13);
return True;
}