diff options
author | itojun <itojun@NetBSD.org> | 2003-09-19 10:01:21 +0000 |
---|---|---|
committer | itojun <itojun@NetBSD.org> | 2003-09-19 10:01:21 +0000 |
commit | 742773e212d99fd36e69f4888a502962b4560a1d (patch) | |
tree | 57277ef628d28fd418527301f3b5f9e610f0545e /adventure | |
parent | 9f7fd971c6dcdb0bc5ceb4ad969f97397c0eb854 (diff) | |
download | bsdgames-darwin-742773e212d99fd36e69f4888a502962b4560a1d.tar.gz bsdgames-darwin-742773e212d99fd36e69f4888a502962b4560a1d.tar.zst bsdgames-darwin-742773e212d99fd36e69f4888a502962b4560a1d.zip |
off-by-one. aaron@openbsd
Diffstat (limited to 'adventure')
-rw-r--r-- | adventure/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adventure/io.c b/adventure/io.c index 169a68e1..20b4066c 100644 --- a/adventure/io.c +++ b/adventure/io.c @@ -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 @@ rdesc(sect) /* read description-format msgs */ 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; |