diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-11-14 16:42:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-11-14 16:42:28 +0000 |
commit | 16548adc66fb6562df242b90044d56d44e3401a1 (patch) | |
tree | 2428ab24f34ffb0055250f1baa11095e81395fd9 /sbin/fdisk | |
parent | 869efcfbe774d59cb9f62a57ef202fd46068f2bc (diff) |
fix a typo, from Daniel Lucq <daniel@lucq.org>, tested on:
> (0) a SCSI disk with a working OpenBSD install
> (1) a SCSI disk with cleared first sector (dd if=/dev/zero)
> (2) an IDE disk with a working OpenBSD install
> (3) an IDE disk with cleared first sector
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/part.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index efc61404066..40ba4b08efb 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.25 2001/11/07 01:27:33 miod Exp $ */ +/* $OpenBSD: part.c,v 1.26 2001/11/14 16:42:27 mickey Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -245,7 +245,7 @@ PRT_make(partn, offset, reloff, prt) tmp.ssect = partn->ssect; tmp.scyl = (partn->scyl > 1023)? 1023: partn->scyl; tmp.ehead = partn->ehead; - tmp.esect = partn->ssect; + tmp.esect = partn->esect; tmp.ecyl = (partn->ecyl > 1023)? 1023: partn->ecyl; if (!PRT_check_chs(partn) && PRT_check_chs(&tmp)) { partn->shead = tmp.shead; |