From 204ae37859853c3affc5339120837a24459e7cbd Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 2 May 2003 22:46:44 +0000 Subject: [PATCH] bsd_disklabel_le_dec() takes an extra argument now. --- sbin/bsdlabel/bsdlabel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 2881a4d39139..50fb76d1cbcb 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -413,7 +413,8 @@ readlabel(int f) (void)lseek(f, (off_t)0, SEEK_SET); if (read(f, bootarea, BBSIZE) < BBSIZE) err(4, "%s", specname); - bsd_disklabel_le_dec((u_char *)bootarea + labeloffset, &lab); + bsd_disklabel_le_dec((u_char *)bootarea + labeloffset, &lab, + MAXPARTITIONS); return (&lab); }