Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Fix off-by-one comparison.
details: https://anonhg.NetBSD.org/src/rev/c4009ee728e1
branches: trunk
changeset: 474584:c4009ee728e1
user: ross <ross%NetBSD.org@localhost>
date: Mon Jul 12 07:37:14 1999 +0000
description:
Fix off-by-one comparison.
diffstat:
sys/arch/alpha/alpha/db_trace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3dd957526077 -r c4009ee728e1 sys/arch/alpha/alpha/db_trace.c
--- a/sys/arch/alpha/alpha/db_trace.c Mon Jul 12 05:22:50 1999 +0000
+++ b/sys/arch/alpha/alpha/db_trace.c Mon Jul 12 07:37:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.3 1999/07/11 22:28:15 ross Exp $ */
+/* $NetBSD: db_trace.c,v 1.4 1999/07/12 07:37:14 ross Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.3 1999/07/11 22:28:15 ross Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.4 1999/07/12 07:37:14 ross Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -363,7 +363,7 @@
db_printf(" (%d", number); /* ) */
if (!p)
goto out;
- if (0 <= number && number <= p->p_emul->e_nsysent) {
+ if (0 <= number && number < p->p_emul->e_nsysent) {
ename = p->p_emul->e_name;
f = p->p_emul->e_sysent[number].sy_call;
sym = db_search_symbol((db_addr_t)f, DB_STGY_ANY, &diff);
Home |
Main Index |
Thread Index |
Old Index