1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

Fix off-by-one bug in safe_strcpy size paramater.

(This used to be commit 9af30c9aae)
This commit is contained in:
Andrew Bartlett 2003-03-15 06:54:09 +00:00
parent 32ae87014c
commit 9a00acc472

View File

@ -916,7 +916,7 @@ You can string acls together with spaces, commas or newlines\n\
if (filename[0] != '\\') {
pstring s;
s[0] = '\\';
safe_strcpy(&s[1], filename, sizeof(pstring)-1);
safe_strcpy(&s[1], filename, sizeof(pstring)-2);
pstrcpy(filename, s);
}