summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-03 07:09:29 +0000
committerMiles Bader <miles@gnu.org>1996-02-03 07:09:29 +0000
commit542323b3c21fc12825893aee168423421c1aa252 (patch)
treee4292cb049f05b2e1757489604dacb347ff7dcf7 /libshouldbeinlibc
parentd23f8ca863006b940431ef899a77d5515dac2753 (diff)
(idvec_merge_ids): Correctly add all IDS, even if some duplicates are avoided.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/idvec.c5
1 files changed, 3 insertions, 2 deletions
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 <miles@gnu.ai.mit.edu>
@@ -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;
}