git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c46b4ca
)
r10204: I love valgrind :-). Found stupid missing parantheses :-).
author
Jeremy Allison
<jra@samba.org>
Tue, 13 Sep 2005 16:54:59 +0000
(16:54 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:03:36 +0000
(11:03 -0500)
Jeremy.
(This used to be commit
b406a202128c1ba9800784ab8c571584b37c746b
)
source3/libsmb/smb_share_modes.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/smb_share_modes.c
b/source3/libsmb/smb_share_modes.c
index 9e7f196b8254938f8ff21dff09ce79bb15a4fe3e..e0c23877932a9cf7649049c76c24d772d50298b8 100644
(file)
--- 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,