From: Jim Meyering Date: Tue, 9 Mar 1999 16:10:30 +0000 (+0000) Subject: fix small thinko X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b9b901fe19fc9817675762ee1318b9fe78484e;p=pspp fix small thinko --- diff --git a/lib/getugroups.c b/lib/getugroups.c index 01d36ff109..d76517cfc6 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)