summaryrefslogtreecommitdiffstats
path: root/trek
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-19 00:56:12 +0000
committerchristos <christos@NetBSD.org>2006-03-19 00:56:12 +0000
commitdf3a91296462d0a72da374c6faceb63be6657eee (patch)
treee2b7b0bc0203c509a2ea44a3b83663c378969bec /trek
parent489aeaa44fcd5524032787011b371da35c754266 (diff)
downloadbsdgames-darwin-df3a91296462d0a72da374c6faceb63be6657eee.tar.gz
bsdgames-darwin-df3a91296462d0a72da374c6faceb63be6657eee.tar.zst
bsdgames-darwin-df3a91296462d0a72da374c6faceb63be6657eee.zip
Coverity CID 1467: Elide static buffer overflow.
Diffstat (limited to 'trek')
-rw-r--r--trek/schedule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trek/schedule.c b/trek/schedule.c
index 6fba0f90..d3c0c286 100644
--- a/trek/schedule.c
+++ b/trek/schedule.c
@@ -1,4 +1,4 @@
-/* $NetBSD: schedule.c,v 1.5 2003/08/07 09:37:53 agc Exp $ */
+/* $NetBSD: schedule.c,v 1.6 2006/03/19 00:56:12 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)schedule.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: schedule.c,v 1.5 2003/08/07 09:37:53 agc Exp $");
+__RCSID("$NetBSD: schedule.c,v 1.6 2006/03/19 00:56:12 christos Exp $");
#endif
#endif /* not lint */
@@ -80,7 +80,7 @@ char z;
e->x = x;
e->y = y;
e->systemname = z;
- Now.eventptr[type] = e;
+ Now.eventptr[type & ~E_GHOST] = e;
return (e);
}
errx(1, "Cannot schedule event %d parm %d %d %d", type, x, y, z);