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/com6.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/com6.c')
-rw-r--r-- | games/battlestar/com6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index a7fa41e..a6dc158 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -45,7 +45,7 @@ launch() clearbit(location[position].objects,VIPER); position = location[position].up; notes[LAUNCHED] = 1; - time++; + gtime++; fuel -= 4; puts("You climb into the viper and prepare for launch."); puts("With a touch of your thumb the turbo engines ignite, thrusting you back into\nyour seat."); @@ -66,7 +66,7 @@ land() position = location[position].down; setbit(location[position].objects,VIPER); fuel -= 2; - time++; + gtime++; puts("You are down."); return(1); } @@ -168,7 +168,7 @@ drive() clearbit(location[position].objects,CAR); setbit(location[position].objects,CRASH); injuries[5] = injuries[6] = injuries[7] = injuries[8] = 1; - time += 15; + gtime += 15; zzz(); return(0); } @@ -203,7 +203,7 @@ light() /* synonyms = {strike, smoke} */ { /* for matches, cigars */ if (testbit(inven,MATCHES) && matchcount){ puts("Your match splutters to life."); - time++; + gtime++; matchlight = 1; matchcount--; if (position == 217){ |