summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/nsstest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/nsstest.c b/nsswitch/nsstest.c
index d84e028513..e2b39bc6be 100644
--- a/nsswitch/nsstest.c
+++ b/nsswitch/nsstest.c
@@ -370,7 +370,7 @@ static void nss_test_initgroups(char *name, gid_t gid)
int i;
NSS_STATUS status;
- groups = (gid_t *)malloc(size);
+ groups = (gid_t *)malloc(sizeof(gid_t) * size);
groups[0] = gid;
status = nss_initgroups(name, gid, &groups, &start, &size);