Fix some warning about value.h. Make sure that it doesn't attempt to fclose a NULL pointer if ~/.xpilotrc is not present. Fix: http://bloodaxis.dyndns.org/~ppl/patch/editss.diff How-To-Repeat: run editss without a ~/.xpilotrc
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>
State Changed From-To: open->closed committed, thanks