mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
loadparm: Fix a warning for increased alignment
There's tons of those, but you have to start somewhere :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
8d8c638c3d
commit
be21ae621f
@ -1943,7 +1943,7 @@ int getservicebyname(const char *pszServiceName, struct loadparm_service *pservi
|
||||
(data.dptr != NULL) &&
|
||||
(data.dsize == sizeof(iService)))
|
||||
{
|
||||
iService = *(int *)data.dptr;
|
||||
memcpy(&iService, data.dptr, sizeof(iService));
|
||||
}
|
||||
|
||||
TALLOC_FREE(canon_name);
|
||||
|
Loading…
Reference in New Issue
Block a user