Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!mcewan From: mcewan@uiucdcsb.UUCP Newsgroups: comp.sys.cbm Subject: Re: C-Power bug ??? Message-ID: <164200001@uiucdcsb> Date: Tue, 9-Dec-86 15:30:00 EST Article-I.D.: uiucdcsb.164200001 Posted: Tue Dec 9 15:30:00 1986 Date-Received: Sun, 14-Dec-86 00:00:30 EST References: <1688@i.cc.purdue.edu> Lines: 18 Nf-ID: #R:i.cc.purdue.edu:1688:uiucdcsb:164200001:000:650 Nf-From: uiucdcsb.cs.uiuc.edu!mcewan Dec 9 14:30:00 1986 There's another, potentially much more troublesome, error that no one seems to have noticed: struct tank *pl1; /* the sprite used in this program */ pl1->x = 53248; *pl1->x = 30; Pointer pl1 isn't initialized; you need to do a malloc. The results of the above code will be totally unpredictable. It could overwrite the running code and cause a crash in some other routine. It may not cause any problem at all. Since it depends on what junk is sitting in memory when the program is run, you could get different results when you run the program different times. Scott McEwan {ihnp4,pur-ee}!uiucdcs!mcewan "Sheep abusers really get my goat."