aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index 5bd1eba..c48c068 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -113,12 +113,10 @@ rscan_news2(FILE *fp, int p, int num)
if (num == 0)
return;
- ;
-
- if (fgets(junk, sizeof junk, fp) == NULL || feof(fp))
+ if (fgets(junk, sizeof junk, fp) == NULL || feof(fp) ||
+ sscanf(junk, "%ld %9s", &lval, count) != 2)
return;
- sscanf(junk, "%ld %s", &lval, count);
rscan_news2(fp, p, num - 1);
junkp = junk;