Fix typo in partition overlap checking - the inner loop check for

boringpart used the outer loop variable.
This commit is contained in:
simonb 1997-12-05 14:46:01 +00:00
parent 3722de06d9
commit c483af0a08
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: label.c,v 1.2 1997/12/05 14:01:02 jonathan Exp $ */ /* $NetBSD: label.c,v 1.3 1997/12/05 14:46:01 simonb Exp $ */
/* /*
* Copyright 1997 Jonathan Stone * Copyright 1997 Jonathan Stone
@ -37,7 +37,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: label.c,v 1.2 1997/12/05 14:01:02 jonathan Exp $"); __RCSID("$NetBSD: label.c,v 1.3 1997/12/05 14:46:01 simonb Exp $");
#endif #endif
#include <sys/types.h> #include <sys/types.h>
@ -115,7 +115,7 @@ checklabel(partinfo *lp, int nparts, int rawpart, int bsdpart,
int jstart, jstop; int jstart, jstop;
/* skip unused or reserved partitions */ /* skip unused or reserved partitions */
if (boringpart(lp, i, rawpart, bsdpart)) if (boringpart(lp, j, rawpart, bsdpart))
continue; continue;
jstart = jp[D_OFFSET]; jstart = jp[D_OFFSET];