1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

don't do pointer arithmetic on void* (some compilers can't do it)

(This used to be commit c65e8db7ae)
This commit is contained in:
Andrew Tridgell 2001-09-04 20:34:02 +00:00
parent 15472c4ee7
commit 1f5203cd24

View File

@ -810,7 +810,7 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state)
return WINBINDD_ERROR;
num_domain_entries += groups.num_sam_entries;
memcpy (sam_entries+offset, groups.sam_entries,
memcpy (((char *)sam_entries)+offset, groups.sam_entries,
sizeof(struct acct_info) * groups.num_sam_entries);
groups.sam_entries = NULL;