Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst Fix typo in calculation of partition's...



details:   https://anonhg.NetBSD.org/src/rev/626d9baa5d14
branches:  trunk
changeset: 500755:626d9baa5d14
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Mon Dec 18 04:52:52 2000 +0000

description:
Fix typo in calculation of partition's end (s/mbrp_size/mbrp_start/).
Fix reported in PR 7556 by Arne Juul <arnej%math.ntnu.no@localhost>

diffstat:

 distrib/utils/sysinst/mbr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b41317619bdf -r 626d9baa5d14 distrib/utils/sysinst/mbr.c
--- a/distrib/utils/sysinst/mbr.c       Mon Dec 18 02:46:49 2000 +0000
+++ b/distrib/utils/sysinst/mbr.c       Mon Dec 18 04:52:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbr.c,v 1.23 2000/10/17 19:44:28 fvdl Exp $ */
+/*     $NetBSD: mbr.c,v 1.24 2000/12/18 04:52:52 hubertf Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -384,7 +384,7 @@
                        if (part[i].mbrp_size % sizemult)
                                rsize++;
                        rend = (part[i].mbrp_start + part[i].mbrp_size) / sizemult;
-                       if ((part[i].mbrp_size + part[i].mbrp_size) % sizemult)
+                       if ((part[i].mbrp_start + part[i].mbrp_size) % sizemult)
                                rend++;
                        msg_table_add(MSG_part_row_start_used, i,
                            part[i].mbrp_start / sizemult, rsize, rend);



Home | Main Index | Thread Index | Old Index