Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!samsung!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!xanthian From: xanthian@zorch.SF-Bay.ORG (Kent Paul Dolan) Newsgroups: comp.sources.games.bugs Subject: Re: adl2 - only a bug if you change things Message-ID: <1990Jun27.183029.8101@zorch.SF-Bay.ORG> Date: 27 Jun 90 18:30:29 GMT References: Organization: SF Bay Public-Access Unix Lines: 43 In article dg@pallio.UUCP (David Goodenough) writes: >There is a potential bug in scen.c, in the procedure pphr() - it starts >at about line 387 in scen.c The way it's delivered, it looks like this: > >pphr() > { > int i; > struct _phrase_ *phrp; > char *bp; > > if (phrnum >= MAXMOVE) > { > printf("To many 'p' records\n"); > return; > } > >etc. etc. > >It should be this: > >pphr() > { > int i; > struct _phrase_ *phrp; > char *bp; > > if (phrnum >= MAXPHR) > { > printf("To many 'p' records\n"); > return; > } > >This won't be an issue unless you start changing the stuff in game.h, >since as delivered MAXMOVE and MAXPHR are the same (75). While you're poking around in there, you might as well fix the damned spelling too! printf("Too many 'p' records\n"); Kent, the man from xanth.