diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-03 09:25:58 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-03 09:25:58 +0100 |
commit | 1d2f32696c3a141a16231f7d84be119de1656758 (patch) | |
tree | cc64ee260d3f00625c4c8519839f4cccc4382a46 /nss | |
parent | c0044585f5f6a2c4eedb279ee2941ca7f0c35857 (diff) |
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
Diffstat (limited to 'nss')
-rw-r--r-- | nss/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |