diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
commit | ae8a031e28803ad11c91125bd1523348d0f9aba7 (patch) | |
tree | bdb340ca3ea84c5ced44c0a90436c136a706dcf3 /sys/isofs/udf | |
parent | a8bf30cd22bf1b839f7e9bffcd664791d8b3b2ae (diff) |
The only value that d_npartitions should have is MAXPARTITIONS.
Diffstat (limited to 'sys/isofs/udf')
-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 81f43b446b6..f823d0d8b75 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.19 2009/05/14 10:49:00 krw Exp $ */ +/* $OpenBSD: udf_subr.c,v 1.20 2009/05/21 23:45:48 krw Exp $ */ /* * Copyright (c) 2006, Miodrag Vallat @@ -166,7 +166,7 @@ udf_disklabelspoof(dev_t dev, void (*strat)(struct buf *), lp->d_partitions[0].p_fstype = FS_UDF; DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); lp->d_partitions[RAW_PART].p_fstype = FS_UDF; - lp->d_npartitions = RAW_PART + 1; + lp->d_npartitions = MAXPARTITIONS; lp->d_version = 1; lp->d_bbsize = 8192; /* Fake. */ |