[Pkg-nethack-devel] nethack/patches 13_simple_mail.dpatch,1.2,1.3

Joshua Kwan joshk-guest@quantz.debian.org
Tue, 06 Jan 2004 18:31:45 +0000


Update of /cvsroot/pkg-nethack/nethack/patches
In directory quantz:/tmp/cvs-serv6223/patches

Modified Files:
	13_simple_mail.dpatch 
Log Message:
oops, fix it again


Index: 13_simple_mail.dpatch
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/patches/13_simple_mail.dpatch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- 13_simple_mail.dpatch	6 Jan 2004 18:10:49 -0000	1.2
+++ 13_simple_mail.dpatch	6 Jan 2004 18:31:43 -0000	1.3
@@ -97,7 +97,7 @@
  		return;
  
  	laststattime = moves;
-@@ -501,9 +509,67 @@
+@@ -501,9 +509,68 @@
  readmail(otmp)
  struct obj *otmp;
  {
@@ -127,7 +127,7 @@
 +		
 +		errno = 0;
 +		
-+		while (fgets(curline, 80, mb) != NULL)
++		while (fgets(curline, 102, mb) != NULL)
 +		{
 +		  fl.l_type = F_UNLCK;
 +		  fcntl (fileno(mb), F_UNLCK, &fl);
@@ -159,6 +159,7 @@
 +		fcntl(fileno(mb), F_UNLCK, &fl);
 +		
 +		fclose(mb);
++		unlink(mailbox);
 +		return;
 +	}
 +# endif /* SIMPLE_MAIL */