git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6529e52
)
s3: Avoid a potential alignment requirement issue
author
Volker Lendecke
<vl@samba.org>
Fri, 6 Jan 2012 15:38:44 +0000
(16:38 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 6 Jan 2012 16:23:44 +0000
(17:23 +0100)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 1310353348e881933bc84954f60e6b93fdf62dab..2ab32f8920205883ccfafa8be4430cf87d5b2ad7 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-8504,9
+8504,8
@@
static int process_usershare_file(const char *dir_name, const char *file_name, i
if (NT_STATUS_IS_OK(status) &&
(data.dptr != NULL) &&
- (data.dsize == sizeof(iService)))
- {
- iService = *(int *)data.dptr;
+ (data.dsize == sizeof(iService))) {
+ memcpy(&iService, data.dptr, sizeof(iService));
}
}