summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-04 20:34:02 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-04 20:34:02 +0000
commit1f5203cd24b869bd4270c8d020909a448f5d378f (patch)
treee66d2fbae89c2c7895c9d2619e76d90107fb8a13 /source3
parent15472c4ee7a8cf78c352ce56b48868762d68f95a (diff)
downloadsamba-1f5203cd24b869bd4270c8d020909a448f5d378f.tar.gz
samba-1f5203cd24b869bd4270c8d020909a448f5d378f.tar.bz2
samba-1f5203cd24b869bd4270c8d020909a448f5d378f.zip
don't do pointer arithmetic on void* (some compilers can't do it)
(This used to be commit c65e8db7ae765f844f8b0adb1e5de3651561ad96)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_group.c2
1 files changed, 1 insertions, 1 deletions
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;