From 1d2f32696c3a141a16231f7d84be119de1656758 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 3 Jan 2008 08:25:58 +0000 Subject: increment value that is pointed to, not the pointer (fixes segfault) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@552 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss') diff --git a/nss/group.c b/nss/group.c index 0fdced1..beb731d 100644 --- a/nss/group.c +++ b/nss/group.c @@ -68,7 +68,7 @@ static enum nss_status read_gids( if ( ((*start)>=(*size)) || (num>=limit) ) { ERROR_OUT_BUFERROR(fp); } /* add gid to list */ - (*groupsp)[*start++]=gid; + (*groupsp)[(*start)++]=gid; num++; /* read next response code (don't bail out on not success since we just want to build -- cgit v1.2.3