Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dartvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!dual!amd!decwrl!decvax!dartvax!davidk From: davidk@dartvax.UUCP (David C. Kovar) Newsgroups: net.games Subject: Need help with Midway bug Message-ID: <2219@dartvax.UUCP> Date: Sat, 21-Jul-84 22:23:29 EDT Article-I.D.: dartvax.2219 Posted: Sat Jul 21 22:23:29 1984 Date-Received: Fri, 27-Jul-84 08:44:47 EDT Organization: Dartmouth College Lines: 22 I'm getting a segmentation fault from the following chunk of code in midway.c . This is the section that runs through the individual sections in a particular fleet and gives their stats. It looks fine to me, but ... I suppose it could be something wrong with the declaration as well. If anyone has any ideas, I'd be more than happy to hear them. This is right around line 414 of midway.c . muck = (int *) fleet[i]; for (i=0; muck[i] != NULL; i++) { sp = (struct ship *) muck[i]; printf("%d) %s %s (%d Kilotons)\n", i, describe[sp->type], sp->name, sp->value); } -- David C. Kovar USNET: {linus|decvax|cornell|astrovax}!dartvax!davidk ARPA: davidk%dartmouth@csnet-relay CSNET: davidk@dartmouth "The difficult we did yesterday, the impossible we are doing now."