1
0
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:
Volker Lendecke 2016-10-18 12:45:28 +02:00 committed by Jeremy Allison
parent 8d8c638c3d
commit be21ae621f

View File

@ -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);