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:
parent
32ae87014c
commit
9a00acc472
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user