summaryrefslogtreecommitdiffstats
path: root/source/utils/smbcacls.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-18 11:22:52 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-18 11:22:52 +0000
commitc5b604e2ee67d74241ae2fa07ae904647d35a2be (patch)
tree83e80f648c8c3a02a1f2fe5166a6b4b23a147180 /source/utils/smbcacls.c
parent196628432130f826505187a27207a7b947e034cf (diff)
downloadsamba-c5b604e2ee67d74241ae2fa07ae904647d35a2be.tar.gz
samba-c5b604e2ee67d74241ae2fa07ae904647d35a2be.tar.xz
samba-c5b604e2ee67d74241ae2fa07ae904647d35a2be.zip
Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett
Diffstat (limited to 'source/utils/smbcacls.c')
-rw-r--r--source/utils/smbcacls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/smbcacls.c b/source/utils/smbcacls.c
index a5cee0dae12..bce64df9604 100644
--- a/source/utils/smbcacls.c
+++ b/source/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);
}