1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

Fix bug 5860: safe_strcpy gives a nasty error message for overlong strings

Thanks to Robert Dahlem <Robert.Dahlem@gmx.net> for reporting this!
This commit is contained in:
Volker Lendecke
2008-11-02 10:28:00 +01:00
parent c6973e69b7
commit f120038a1f

View File

@ -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;
}