diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-15 00:04:43 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-15 00:04:43 +0000 |
commit | c3c14af105691d6310872766d76fd7a5657ee994 (patch) | |
tree | 6ef9f604cb26c99f97dfcd89b60f62bb45c40ec2 /sys/isofs | |
parent | b81a6efba43e95392ce5c9d39d73a0b0e813bc99 (diff) |
Fix reading of volume ID
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/udf/udf_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_subr.c b/sys/isofs/udf/udf_subr.c index 03cb4242b02..2d05cf7b6ee 100644 --- a/sys/isofs/udf/udf_subr.c +++ b/sys/isofs/udf/udf_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_subr.c,v 1.3 2006/01/15 00:02:22 pedro Exp $ */ +/* $OpenBSD: udf_subr.c,v 1.4 2006/01/15 00:04:42 pedro Exp $ */ /* * Copyright (c) 2006, Miodrag Vallat @@ -148,7 +148,7 @@ udf_disklabelspoof(dev_t dev, void (*strat)(struct buf *), /* * Okay, it's a UDF volume. Spoof a disk label for it. */ - if (udf_transname(pvd->vol_id, vid, sizeof(pvd->vol_id), NULL)) + if (udf_transname(pvd->vol_id, vid, sizeof(pvd->vol_id) - 1, NULL)) strlcpy(lp->d_typename, vid, sizeof(lp->d_typename)); for (i = 0; i < MAXPARTITIONS; i++) { |