summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-15 06:54:09 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-15 06:54:09 +0000
commit9a00acc472b3a9530ca71705faef3166aa9c4d47 (patch)
tree000f7b7077456fb88d52d61e7eb51afe4059f49a /source3/utils
parent32ae87014ce4bc7ddc25f15d44428b8ef2cf5593 (diff)
downloadsamba-9a00acc472b3a9530ca71705faef3166aa9c4d47.tar.gz
samba-9a00acc472b3a9530ca71705faef3166aa9c4d47.tar.bz2
samba-9a00acc472b3a9530ca71705faef3166aa9c4d47.zip
Fix off-by-one bug in safe_strcpy size paramater.
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcacls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index a5cee0dae1..bce64df960 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -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);
}