freebsd-ports/mail/sigrot/files/patch-ab
Michael Haro 2f8ccb0e75 fix runtime seg fault
PR:		17281
Submitted by:	muk@bender.cl.msu.edu
2000-04-02 01:19:05 +00:00

15 lines
279 B
Text

--- sigrot.c.orig Sat Apr 1 17:17:32 2000
+++ sigrot.c Sat Apr 1 17:18:06 2000
@@ -167,9 +167,10 @@
inFile=fopen(Next,"r");
if (inFile==NULL)
next=1;
- else
+ else {
fscanf(inFile,"%d",&next);
- fclose(inFile);
+ fclose(inFile);
+ }
return next;
}