From 542323b3c21fc12825893aee168423421c1aa252 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 3 Feb 1996 07:09:29 +0000 Subject: (idvec_merge_ids): Correctly add all IDS, even if some duplicates are avoided. --- libshouldbeinlibc/idvec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc/idvec.c') diff --git a/libshouldbeinlibc/idvec.c b/libshouldbeinlibc/idvec.c index d1fc160d..49b05ca6 100644 --- a/libshouldbeinlibc/idvec.c +++ b/libshouldbeinlibc/idvec.c @@ -1,6 +1,6 @@ /* Routines for vectors of uids/gids - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -167,7 +167,8 @@ idvec_merge_ids (struct idvec *idvec, id_t *ids, unsigned num) if (idvec->ids[i] == *ids) break; if (i == num_old) - err = idvec_add (idvec, *ids++); + err = idvec_add (idvec, *ids); + ids++; } return err; } -- cgit v1.2.3