From: Volker Lendecke Date: Sun, 2 Nov 2008 09:28:00 +0000 (+0100) Subject: Fix bug 5860: safe_strcpy gives a nasty error message for overlong strings X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c4617f18f851e3f79061ba89ce0d50a83c6563d;p=thirdparty%2Fsamba.git Fix bug 5860: safe_strcpy gives a nasty error message for overlong strings Thanks to Robert Dahlem for reporting this! --- diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c index 360692c5462..4d4d0dc5afb 100644 --- a/source/smbd/mangle.c +++ b/source/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; }