aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/idvec.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-11-18 23:54:14 +0000
committerThomas Bushnell <thomas@gnu.org>1996-11-18 23:54:14 +0000
commitbd9d558835a033293f3ef81808f6e4290241d0ec (patch)
treed7ee630162da9a8268f4638ecaf1a5c6ee1cb659 /libshouldbeinlibc/idvec.c
parent1e156105080b6168f7fd22574dda6140dc5454de (diff)
downloadhurd-bd9d558835a033293f3ef81808f6e4290241d0ec.tar.gz
hurd-bd9d558835a033293f3ef81808f6e4290241d0ec.tar.bz2
hurd-bd9d558835a033293f3ef81808f6e4290241d0ec.zip
Make new functions use bcopy correctly.
Diffstat (limited to 'libshouldbeinlibc/idvec.c')
-rw-r--r--libshouldbeinlibc/idvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libshouldbeinlibc/idvec.c b/libshouldbeinlibc/idvec.c
index 67c8aea0..adebad1a 100644
--- a/libshouldbeinlibc/idvec.c
+++ b/libshouldbeinlibc/idvec.c
@@ -169,8 +169,8 @@ idvec_set_ids (struct idvec *idvec, id_t *ids, unsigned num)
err = idvec_ensure (idvec, num);
if (!err)
{
- bcopy (ids, idvec->ids);
- ids->num = num;
+ bcopy (ids, idvec->ids, num * sizeof (id_t));
+ idvec->num = num;
}
return err;
}