diff options
| author | 2006-01-15 00:04:42 +0000 | |
|---|---|---|
| committer | 2006-01-15 00:04:42 +0000 | |
| commit | 8518eb4a23ba0801a3a57907d3cede788d6d9a49 (patch) | |
| tree | 9b301226bd71e8ccd2d2aea6c2780757cc32d537 /sys/isofs/udf/udf_subr.c | |
| parent | typo (diff) | |
| download | wireguard-openbsd-8518eb4a23ba0801a3a57907d3cede788d6d9a49.tar.xz wireguard-openbsd-8518eb4a23ba0801a3a57907d3cede788d6d9a49.zip | |
Fix reading of volume ID
Diffstat (limited to 'sys/isofs/udf/udf_subr.c')
| -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++) { |
