Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/atari/stand/ahdilabel Pullup 1.2 [jdc]:
details: https://anonhg.NetBSD.org/src/rev/324c031239b3
branches: netbsd-1-5
changeset: 489995:324c031239b3
user: tv <tv%NetBSD.org@localhost>
date: Thu Oct 26 21:12:21 2000 +0000
description:
Pullup 1.2 [jdc]:
Correct `off by one' error when testing against size of disk.
diffstat:
sys/arch/atari/stand/ahdilabel/check.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 228eb41fa66a -r 324c031239b3 sys/arch/atari/stand/ahdilabel/check.c
--- a/sys/arch/atari/stand/ahdilabel/check.c Thu Oct 26 21:09:17 2000 +0000
+++ b/sys/arch/atari/stand/ahdilabel/check.c Thu Oct 26 21:12:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: check.c,v 1.1.1.1.2.2 2000/08/14 07:59:59 leo Exp $ */
+/* $NetBSD: check.c,v 1.1.1.1.2.3 2000/10/26 21:12:21 tv Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
i_end = ptable->parts[i].start + ptable->parts[i].size - 1;
/* Check partition does not extend past end of disk */
- if (i_end > ptable->secperunit) {
+ if (i_end >= ptable->secperunit) {
ahdi_errp1 = i;
return (-5);
}
Home |
Main Index |
Thread Index |
Old Index