From fbaac7ba2936939d97eb9458431a7135c3c754d6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 9 Mar 1999 16:10:30 +0000 Subject: fix small thinko --- lib/getugroups.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/getugroups.c') diff --git a/lib/getugroups.c b/lib/getugroups.c index 01d36ff10..d76517cfc 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -52,8 +52,7 @@ getugroups (int maxcount, GETGROUPS_T *grouplist, char *username, gid_t gid) register int count = 0; if (maxcount != 0) - grouplist[count] = gid; - ++count; + grouplist[count++] = gid; setgrent (); while ((grp = getgrent ()) != 0) -- cgit v1.2.3-54-g00ecf