diff options
author | Volker Lendecke <vl@sernet.de> | 2007-11-18 14:45:19 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-18 15:08:54 -0800 |
commit | 815aec8241b2da93a193eb8d3b3adbfdef5c1d90 (patch) | |
tree | f49444dadfb323e71dd680c6b0c4958f686a9161 | |
parent | 3546d5c099981fede0b29136b3d92145a988a558 (diff) | |
download | samba-815aec8241b2da93a193eb8d3b3adbfdef5c1d90.tar.gz samba-815aec8241b2da93a193eb8d3b3adbfdef5c1d90.tar.bz2 samba-815aec8241b2da93a193eb8d3b3adbfdef5c1d90.zip |
Add a comment
(This used to be commit 144014096a41de293ce7ec15f82681a469dd3aa1)
-rw-r--r-- | source3/locking/locking.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 0cedff36e4..eb7531d9a0 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -474,8 +474,14 @@ static void print_share_mode_table(struct locking_data *data) struct share_mode_entry entry; char *str; + /* + * We need to memcpy the entry here due to alignment + * restrictions that are not met when directly accessing + * shares[i] + */ + memcpy(&entry, &shares[i], sizeof(struct share_mode_entry)); - str = share_mode_str(NULL, i, &entry); + str = share_mode_str(talloc_tos(), i, &entry); DEBUG(10,("print_share_mode_table: %s\n", str ? str : "")); TALLOC_FREE(str); |