From owner-freebsd-ports@FreeBSD.ORG Thu Apr 26 05:01:08 2007 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 886EF16A408 for ; Thu, 26 Apr 2007 05:01:08 +0000 (UTC) (envelope-from dima@rdy.com) Received: from sivka.rdy.com (sivka.rdy.com [64.81.70.69]) by mx1.freebsd.org (Postfix) with ESMTP id 6188413C468 for ; Thu, 26 Apr 2007 05:01:08 +0000 (UTC) (envelope-from dima@rdy.com) Received: from sivka.rdy.com (nobody@localhost [127.0.0.1]) by sivka.rdy.com (8.13.8/8.13.8) with ESMTP id l3Q4dTIC029824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 25 Apr 2007 21:39:29 -0700 (PDT) (envelope-from dima@rdy.com) DomainKey-Signature: a=rsa-sha1; s=RDY; d=rdy.com; c=simple; q=dns; b=sMKLBg1vunwwsju6ONv041VfP79GuWtpXAzeHTZcLU5W/AcmukPJ16JkygRYftr6z Nu8EIDdTjf1FPieKl2L1g== Received: (from dima@localhost) by sivka.rdy.com (8.13.8/8.13.8/Submit) id l3Q4dTNZ029823 for ports@FreeBSD.org; Wed, 25 Apr 2007 21:39:29 -0700 (PDT) (envelope-from dima@rdy.com) Date: Wed, 25 Apr 2007 21:39:28 -0700 From: Dima Ruban To: ports@FreeBSD.org Message-ID: <20070426043928.GA29793@sivka.rdy.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: games/freebsd-games larn X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 05:01:08 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Guys, sometime during the last couple of month ``larn'' got broken. When I start playing it, everything goes well until I find an object - potion or scroll. If I try to pick it up, I get BUS error. Any ideas what's going on? Also, I'm attaching patch that allows ``larn'' to correctly send an email when the game is over. Cheers! --dima --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-larn::bill.c.dima" *** larn/bill.c.ORIG Sun Sep 19 16:16:10 2004 --- larn/bill.c Sun Sep 19 16:16:15 2004 *************** *** 129,136 **** cp = mail; sprintf(fname, "/tmp/#%dlarnmail", getpid()); for (i = 0; i < 6; i++) { ! if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT), ! 0660) == -1) exit(0); while (*cp != NULL) { if (*cp[0] == '1') { --- 129,136 ---- cp = mail; sprintf(fname, "/tmp/#%dlarnmail", getpid()); for (i = 0; i < 6; i++) { ! if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT, ! 0660)) == -1) exit(0); while (*cp != NULL) { if (*cp[0] == '1') { --FCuugMFkClbJLl1L--