Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/evbarm Correct off-by-one in validation of b...
details: https://anonhg.NetBSD.org/src/rev/29b727adfb6e
branches: trunk
changeset: 784200:29b727adfb6e
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Jan 21 20:20:32 2013 +0000
description:
Correct off-by-one in validation of booted partition number.
diffstat:
sys/arch/evbarm/evbarm/autoconf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f6190814ed5a -r 29b727adfb6e sys/arch/evbarm/evbarm/autoconf.c
--- a/sys/arch/evbarm/evbarm/autoconf.c Mon Jan 21 19:49:15 2013 +0000
+++ b/sys/arch/evbarm/evbarm/autoconf.c Mon Jan 21 20:20:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.15 2012/12/02 18:22:45 msaitoh Exp $ */
+/* $NetBSD: autoconf.c,v 1.16 2013/01/21 20:20:32 jakllsch Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.15 2012/12/02 18:22:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2013/01/21 20:20:32 jakllsch Exp $");
#include "opt_md.h"
@@ -79,7 +79,7 @@
if (cp == name)
return;
- if (*cp >= 'a' && *cp <= ('a' + MAXPARTITIONS))
+ if (*cp >= 'a' && *cp < ('a' + MAXPARTITIONS))
part = *cp - 'a';
else if (*cp != '\0' && *cp != ' ')
return;
Home |
Main Index |
Thread Index |
Old Index