diff options
author | Jeremy Allison <jra@samba.org> | 2005-09-13 16:54:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:36 -0500 |
commit | c2f9fdcb46c81415aefd7852ad1bd45e1762c90d (patch) | |
tree | 7d553c66bfae15d3d3a02ff084e64073682a9c85 /source3/libsmb | |
parent | c46b4cabf4ee02fc90b3b42c800926f55c7099be (diff) | |
download | samba-c2f9fdcb46c81415aefd7852ad1bd45e1762c90d.tar.gz samba-c2f9fdcb46c81415aefd7852ad1bd45e1762c90d.tar.bz2 samba-c2f9fdcb46c81415aefd7852ad1bd45e1762c90d.zip |
r10204: I love valgrind :-). Found stupid missing parantheses :-).
Jeremy.
(This used to be commit b406a202128c1ba9800784ab8c571584b37c746b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smb_share_modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index 9e7f196b82..e0c2387793 100644 --- a/source3/libsmb/smb_share_modes.c +++ b/source3/libsmb/smb_share_modes.c @@ -255,7 +255,7 @@ int smb_create_share_mode_entry(struct smbdb_ctx *db_ctx, ld = (struct locking_data *)db_data.dptr; ld->u.s.num_share_mode_entries = 1; ld->u.s.delete_on_close = 0; - shares = (share_mode_entry *)db_data.dptr + sizeof(struct locking_data); + shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data)); create_share_mode_entry(shares, new_entry); memcpy(db_data.dptr + sizeof(struct locking_data) + sizeof(share_mode_entry), filename, |