Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/adventure off-by-one. aaron@openbsd
details: https://anonhg.NetBSD.org/src/rev/17893b47585e
branches: trunk
changeset: 552123:17893b47585e
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Sep 19 10:01:21 2003 +0000
description:
off-by-one. aaron@openbsd
diffstat:
games/adventure/io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4eb2199ae6df -r 17893b47585e games/adventure/io.c
--- a/games/adventure/io.c Fri Sep 19 08:57:52 2003 +0000
+++ b/games/adventure/io.c Fri Sep 19 10:01:21 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.13 2003/08/07 09:36:50 agc Exp $ */
+/* $NetBSD: io.c,v 1.14 2003/09/19 10:01:21 itojun Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: io.c,v 1.13 2003/08/07 09:36:50 agc Exp $");
+__RCSID("$NetBSD: io.c,v 1.14 2003/09/19 10:01:21 itojun Exp $");
#endif
#endif /* not lint */
@@ -313,7 +313,7 @@
cval[clsses++] = oldloc;
break;
case 12: /* magic messages */
- if (oldloc > MAGSIZ)
+ if (oldloc >= MAGSIZ)
errx(1,"Too many magic msgs");
mtext[oldloc].seekadr = seekhere;
mtext[oldloc].txtlen = maystart - seekstart;
Home |
Main Index |
Thread Index |
Old Index