From owner-freebsd-ports Thu Oct 7 1:21:19 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5E4AB14DA0 for ; Thu, 7 Oct 1999 01:21:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA32702; Thu, 7 Oct 1999 01:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from jimex.jinr.ru (jimex.jinr.ru [159.93.17.7]) by hub.freebsd.org (Postfix) with ESMTP id 043A614D03 for ; Thu, 7 Oct 1999 01:12:27 -0700 (PDT) (envelope-from isupov@moonhe.jinr.ru) Received: from moonhe.jinr.ru (isupov@moonhe.jinr.ru [159.93.18.27]) by jimex.jinr.ru (8.8.8/8.8.4) with ESMTP id MAA03265 for ; Thu, 7 Oct 1999 12:12:20 +0400 (MSD) Received: (from isupov@localhost) by moonhe.jinr.ru (8.9.3/8.9.3) id MAA53105; Thu, 7 Oct 1999 12:11:41 +0400 (MSD) (envelope-from isupov) Message-Id: <199910070811.MAA53105@moonhe.jinr.ru> Date: Thu, 7 Oct 1999 12:11:41 +0400 (MSD) From: isupov@moonhe.jinr.ru Reply-To: isupov@moonhe.jinr.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/14176: seahaven(6) obtains SIGFPE Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14176 >Category: ports >Synopsis: seahaven(6) obtains SIGFPE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 7 01:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Isupov A.Yu. >Release: FreeBSD 3.2-RELEASE i386 >Organization: LHE, JINR >Environment: FreeBSD 3.2-RELEASE i386 >Description: seahaven(6) obtains SIGFPE in ScoreRec::repaint() at score.C:86 >How-To-Repeat: Run seahaven(6) "from scratch", without .seahavensave >Fix: Following must be added in the /usr/ports/games/seahaven/patches as file `patch-aa' : -----------------------cut here--------------------- *** score.C.orig Thu Oct 7 11:50:21 1999 --- score.C Thu Oct 7 11:54:40 1999 *************** *** 82,89 **** printLine("%5d game%s played", wins + losses); curx = GAMEWIDTH / 4; cury = 0; ! printLine("Winning average: %5.2f%%", 100.0 * ((double) wins / (double) (wins + losses))); curx = GAMEWIDTH / 2; cury = 0; if (streak > 0) { --- 82,92 ---- printLine("%5d game%s played", wins + losses); curx = GAMEWIDTH / 4; cury = 0; ! if (wins + losses) ! printLine("Winning average: %5.2f%%", 100.0 * ((double) wins / (double) (wins + losses))); + else + printLine("Winning average: undefined"); curx = GAMEWIDTH / 2; cury = 0; if (streak > 0) { -----------------------end of cut------------------- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message