diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-04 20:34:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-04 20:34:02 +0000 |
commit | 1f5203cd24b869bd4270c8d020909a448f5d378f (patch) | |
tree | e66d2fbae89c2c7895c9d2619e76d90107fb8a13 /source3 | |
parent | 15472c4ee7a8cf78c352ce56b48868762d68f95a (diff) | |
download | samba-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.c | 2 |
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; |