From 27eb6d09a03b6d51d025fafa9e46e0f64544d722 Mon Sep 17 00:00:00 2001 From: eivind Date: Thu, 20 Feb 1997 03:04:54 +0000 Subject: Remove buffer overflow and tempfile race, remove hack (and need for it), change definition of setbit() macro and friends to be compatible with . The bugs were discovered and fixed as a result of the FreeBSD code audit. Submitted by: Aaron Bornstein , Mark Huizer --- games/battlestar/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'games/battlestar/init.c') 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 " */ -- cgit v1.1