Date: Fri, 5 Jul 2002 20:10:04 -0700 (PDT) From: Pierre-Paul Lavoie <ppl@nbnet.nb.ca> To: freebsd-ports@FreeBSD.org Subject: Re: ports/38001: [PATCH] games/editss segfaults if ~/.xpilotrc is not present Message-ID: <200207060310.g663A4o0065516@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/38001; it has been noted by GNATS. From: Pierre-Paul Lavoie <ppl@nbnet.nb.ca> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/38001: [PATCH] games/editss segfaults if ~/.xpilotrc is not present Date: Sat, 6 Jul 2002 00:07:41 -0300 Making sure the small patch doesn't become unavailable on the web... diff -ruN editss-2.2-old/actions.c editss-2.2/actions.c --- editss-2.2-old/actions.c Sun May 12 16:50:47 2002 +++ editss-2.2/actions.c Sun May 12 16:54:08 2002 @@ -32,7 +32,7 @@ #include <stdio.h> /* usual include stuff */ #include <stdlib.h> -#include <values.h> +#include <limits.h> #include <string.h> #include <fcntl.h> #include <time.h> diff -ruN editss-2.2-old/editss.c editss-2.2/editss.c --- editss-2.2-old/editss.c Sun May 12 16:50:47 2002 +++ editss-2.2/editss.c Sat Jul 6 00:01:17 2002 @@ -28,7 +28,7 @@ #include <stdio.h> #include <stdlib.h> -#include <values.h> +#include <limits.h> #include <string.h> #include <fcntl.h> #include <time.h> @@ -509,7 +509,7 @@ while (getoneshipdef(a,fin)) { nrships+=1; } - fclose(fin); + if (fin!=NULL) fclose(fin); if (nrships<1) i1=1; else i1=nrships; a[0]='\0'; diff -ruN editss-2.2-old/xstuff.c editss-2.2/xstuff.c --- editss-2.2-old/xstuff.c Sun May 12 16:50:47 2002 +++ editss-2.2/xstuff.c Sun May 12 16:53:53 2002 @@ -28,7 +28,7 @@ #include <stdio.h> #include <stdlib.h> -#include <values.h> +#include <limits.h> #include <string.h> #include <fcntl.h> #include <time.h> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207060310.g663A4o0065516>