From owner-freebsd-bugs Sun May 26 16:20:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA06849 for bugs-outgoing; Sun, 26 May 1996 16:20:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA06824; Sun, 26 May 1996 16:20:02 -0700 (PDT) Resent-Date: Sun, 26 May 1996 16:20:02 -0700 (PDT) Resent-Message-Id: <199605262320.QAA06824@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jc@irbs.com Received: from irbs.irbs.com ([199.182.75.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA04934 for ; Sun, 26 May 1996 16:10:27 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id TAA13704; Sun, 26 May 1996 19:09:55 -0400 (EDT) Message-Id: <199605262309.TAA13704@irbs.irbs.com> Date: Sun, 26 May 1996 19:09:55 -0400 (EDT) From: John Capo Reply-To: jc@irbs.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1254: xroach cores with missing arguments Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1254 >Category: bin >Synopsis: xroach cores with missing arguments >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 26 16:20:01 PDT 1996 >Last-Modified: >Originator: John Capo >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: >Description: Omit numeric arg with flag that expects one and xroach will core. >How-To-Repeat: xroach -roaches will do it I think. >Fix: *** /usr/stable/src/games/x11/xroach/xroach.c Sat May 4 21:18:41 1996 --- games/x11/xroach/xroach.c Sat May 4 17:50:29 1996 *************** *** 96,114 **** /* Process command line options. */ ! for (ax=1; ax= ac) ! Usage(); ! if (strcmp(arg, "-display") == 0) { ! display_name = av[ax++]; } else if (strcmp(arg, "-rc") == 0) { ! roachColor = av[ax++]; } else if (strcmp(arg, "-speed") == 0) { ! roachSpeed = atof(av[ax++]); } else if (strcmp(arg, "-roaches") == 0) { ! maxRoaches = strtol(av[ax++], (char **)NULL, 0); } else { Usage(); >Audit-Trail: >Unformatted: