diff options
author | eivind <eivind@FreeBSD.org> | 1997-02-20 03:04:54 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1997-02-20 03:04:54 +0000 |
commit | 27eb6d09a03b6d51d025fafa9e46e0f64544d722 (patch) | |
tree | c09c18b60a67afd2e34d5a6138c86fe56288b8e3 /games/battlestar/init.c | |
parent | 1a5d9e17d08eb1b79c5918e8596ba8f18ea36461 (diff) | |
download | FreeBSD-src-27eb6d09a03b6d51d025fafa9e46e0f64544d722.zip FreeBSD-src-27eb6d09a03b6d51d025fafa9e46e0f64544d722.tar.gz |
Remove buffer overflow and tempfile race, remove <sys/time.h> hack (and
need for it), change definition of setbit() macro and friends to be
compatible with <sys/param.h>.
The bugs were discovered and fixed as a result of the FreeBSD code audit.
Submitted by: Aaron Bornstein <aaronb@j51.com>, Mark Huizer <xaa@stack.nl>
Diffstat (limited to 'games/battlestar/init.c')
-rw-r--r-- | games/battlestar/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/battlestar/init.c b/games/battlestar/init.c index d0359de..6d3a2ed 100644 --- a/games/battlestar/init.c +++ b/games/battlestar/init.c @@ -56,7 +56,7 @@ initialize(startup) wordinit(); if (startup) { direction = NORTH; - time = 0; + gtime = 0; snooze = CYCLE * 1.5; position = 22; setbit(wear, PAJAMAS); @@ -121,7 +121,7 @@ checkout(uname) if (location != NULL) { CUMBER = 3; WEIGHT = 9; /* that'll get him! */ - clock = 10; + gclock = 10; setbit(location[7].objects, WOODSMAN); /* viper room */ setbit(location[20].objects, WOODSMAN); /* laser " */ setbit(location[13].objects, DARK); /* amulet " */ |