Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 21:39:28 -0700
From:      Dima Ruban <dima@rdy.com>
To:        ports@FreeBSD.org
Subject:   games/freebsd-games larn
Message-ID:  <20070426043928.GA29793@sivka.rdy.com>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070426043928.GA29793>