[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in Getcookie()



Hi!

There was a bug in Getcookie():

	--- orig/getcooki.c	Tue Dec 30 06:52:42 1997
	+++ src/getcooki.c	Mon Jul 27 10:17:12 1998
	@@ -41,8 +41,10 @@
	 	}
	 	else {
	 		cookieval = Ssystem(GETCOOKIE, which, NULL);
	-		if (cookieval = -1)
	+		if (cookieval == -1)
	 			cookieval = cookie = 0;
	+		else
	+			cookie = 1;
	 	}
	 	
	 	if(val)

Then I've taken the cookie.dat from Kelli's mint setter and generate the 
following cookie.h. It defines a real name for each cryptic hex number.
May be we should include this header to the next MiNT lib.

 Chris.
 
------------------------------------------------------------------------
 Christian Felsch   email: felsch@tu-harburg.de         (Big mails, uue)
 Bevenser Weg 18           christian_felsch@hh.maus.de  (Mails < 16K)
 21079 Hamburg
 Germany            WWW  : http://www.tu-harburg.de/~smcf1605/   
------------------------------------------------------------------------

Attachment: cookie.h.gz
Description: GNU Zip compressed data