Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!amiga!bruceb From: bruceb@amiga.UUCP Newsgroups: net.micro.amiga Subject: cpri.c Minor bug fix. Message-ID: <1192@amiga.amiga.UUCP> Date: Tue, 20-May-86 20:50:47 EDT Article-I.D.: amiga.1192 Posted: Tue May 20 20:50:47 1986 Date-Received: Fri, 23-May-86 08:07:24 EDT Reply-To: bruceb@hunter.UUCP (Bruce Barrett) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 23 "They didn't hire me to do QA for nothing." Minor bug in cpri is that "cpri 5 0" is accepted without error. cpri.c Minor bug fix. -- what was: -- /* Validate with range check */ if (procnum > tt[0] || tt[procnum] == 0L) { WSTR("Invalid process number\n"); exit(20); } -- should be: -- /* Validate with range check */ if (procnum > tt[0] || tt[procnum] == 0L || procnum == 0L) { WSTR("Invalid process number\n"); exit(20); } --Bruce Barrett