diff options
-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++) { |