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 | 144014096a41de293ce7ec15f82681a469dd3aa1 (patch) | |
tree | 7163393914426804640154826b61628bc197e2c4 | |
parent | b82120f9b7f5aad83d8b4ece0261e9693eedca0c (diff) | |
download | samba-144014096a41de293ce7ec15f82681a469dd3aa1.tar.gz samba-144014096a41de293ce7ec15f82681a469dd3aa1.tar.xz samba-144014096a41de293ce7ec15f82681a469dd3aa1.zip |
Add a comment
-rw-r--r-- | source/locking/locking.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index 0cedff36e43..eb7531d9a01 100644 --- a/source/locking/locking.c +++ b/source/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); |