Don't cast the pointer past to memset
[openafs.git] / src / afs / IRIX / osi_groups.c
index b2ee069..d028c20 100644 (file)
@@ -84,7 +84,7 @@ fixup_pags(int **credpp, int ngroups, gid_t * gidset, int old_afs_pag,
        return EINVAL;          /* sorry */
 
     cr = crdup(OSI_GET_CURRENT_CRED());        /* we will replace all the groups. */
-    memset((char *)&cr->cr_groups, 0, ngroups_max * sizeof(gid_t));
+    memset(&cr->cr_groups, 0, ngroups_max * sizeof(gid_t));
 
     /* Now cobble the new groups list together. */
     new = 0;