games/freebsd-games larn
Dima Ruban
dima at rdy.com
Thu Apr 26 05:01:08 UTC 2007
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
-------------- next part --------------
*** 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') {
More information about the freebsd-ports
mailing list