From ae8a031e28803ad11c91125bd1523348d0f9aba7 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 21 May 2009 23:45:49 +0000 Subject: The only value that d_npartitions should have is MAXPARTITIONS. --- sys/isofs/udf/udf_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/isofs/udf') 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. */ -- cgit v1.2.3