diff options
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r-- | FICS/comproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index 399ccc8..220bc3d 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -113,9 +113,9 @@ rscan_news2(FILE *fp, int p, int num) if (num == 0) return; - fgets(junk, MAX_LINE_SIZE, fp); + ; - if (feof(fp)) + if (fgets(junk, sizeof junk, fp) == NULL || feof(fp)) return; sscanf(junk, "%ld %s", &lval, count); |