diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-06 21:43:24 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-06 21:43:24 +0000 |
commit | 7e52960e52fccb96f412b37441530e4563f10d1e (patch) | |
tree | 3628faa4f5fb5180ab526f839dd7104e78de95bb | |
parent | 3542bb2c425c1d7e2cd5edfc7a12a00318717cbb (diff) |
Missed file in previous strncpy fixup for d_packname, d_typename fields.
As in that commit, ok millert@.
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 489a81db5b6..e57b3b65245 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vfsops.c,v 1.32 2002/04/23 18:54:12 espie Exp $ */ +/* $OpenBSD: cd9660_vfsops.c,v 1.33 2003/04/06 21:43:23 krw Exp $ */ /* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */ /*- @@ -503,8 +503,8 @@ iso_disklabelspoof(dev, strat, lp) /* * build a disklabel for the CD */ - strncpy(lp->d_typename, pri->volume_id, 16); - strncpy(lp->d_packname, pri->volume_id+16, 16); + strncpy(lp->d_typename, pri->volume_id, sizeof lp->d_typename); + strncpy(lp->d_packname, pri->volume_id+16, sizeof lp->d_packname); for (i = 0; i < MAXPARTITIONS; i++) { lp->d_partitions[i].p_size = 0; lp->d_partitions[i].p_offset = 0; |