summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-24 03:03:15 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-24 03:03:15 +0000
commit98410be6074362acdd3c1799a59602f590c9decb (patch)
treeca3d2a166b5f8591a2e7e1489b684718b230d92a /source3
parentd1221c9b6c369113a531063737890b58d89bf6fe (diff)
downloadsamba-98410be6074362acdd3c1799a59602f590c9decb.tar.gz
samba-98410be6074362acdd3c1799a59602f590c9decb.tar.bz2
samba-98410be6074362acdd3c1799a59602f590c9decb.zip
Merge off-by-one fix from HEAD (caused crash with --enable-developer)
(This used to be commit d71425413075af25f91f715950c06ab698cf5fb7)
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index d4794560f6..fdfd4d661c 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -630,7 +630,7 @@ BOOL set_share_mode(files_struct *fsp, uint16 port, uint16 op_type)
fsp->fsp_name ));
offset = sizeof(*data) + sizeof(share_mode_entry);
- safe_strcpy(p + offset, fname, size - offset);
+ safe_strcpy(p + offset, fname, size - offset - 1);
fill_share_mode(p + sizeof(*data), fsp, port, op_type);
dbuf.dptr = p;
dbuf.dsize = size;