don't do pointer arithmetic on void* (some compilers can't do it)
authorAndrew Tridgell <tridge@samba.org>
Tue, 4 Sep 2001 20:34:02 +0000 (20:34 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Sep 2001 20:34:02 +0000 (20:34 +0000)
source/nsswitch/winbindd_group.c

index c937f7848ffcc9112706a92b709583e995b7f82f..c4ec9b2ce49b39f208e409a3b2c2142920b677ef 100644 (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;