From c2f9fdcb46c81415aefd7852ad1bd45e1762c90d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 13 Sep 2005 16:54:59 +0000 Subject: r10204: I love valgrind :-). Found stupid missing parantheses :-). Jeremy. (This used to be commit b406a202128c1ba9800784ab8c571584b37c746b) --- source3/libsmb/smb_share_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') 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, -- cgit