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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user