From 1f5203cd24b869bd4270c8d020909a448f5d378f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Sep 2001 20:34:02 +0000 Subject: don't do pointer arithmetic on void* (some compilers can't do it) (This used to be commit c65e8db7ae765f844f8b0adb1e5de3651561ad96) --- source3/nsswitch/winbindd_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index c937f7848f..c4ec9b2ce4 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -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; -- cgit