git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1221c9
)
Merge off-by-one fix from HEAD (caused crash with --enable-developer)
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 24 Feb 2003 03:03:15 +0000
(
03:03
+0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 24 Feb 2003 03:03:15 +0000
(
03:03
+0000)
(This used to be commit
d71425413075af25f91f715950c06ab698cf5fb7
)
source3/locking/locking.c
patch
|
blob
|
history
diff --git
a/source3/locking/locking.c
b/source3/locking/locking.c
index d4794560f60bf083b68ae8488c9f03d49d5debde..fdfd4d661c6d0d5d2f31d6afc41514234a3fe6d1 100644
(file)
--- 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;