summaryrefslogtreecommitdiff
path: root/dbox.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2017-05-10 09:02:14 +0000
committerIan C <ianc@noddybox.co.uk>2017-05-10 09:02:14 +0000
commite76a4a8dc605651128a2ed927d93fc12f68ff6b0 (patch)
tree12812e1366f71ad79b513864f511835f31739c94 /dbox.c
parent67ebfbd2f7073647023d760807fc74cbb507f8c0 (diff)
Fixed warning about fgets().
Diffstat (limited to 'dbox.c')
-rw-r--r--dbox.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dbox.c b/dbox.c
index 53a905c..aadacb7 100644
--- a/dbox.c
+++ b/dbox.c
@@ -221,9 +221,7 @@ static const char *GetLine(FILE *p_fp)
static char s[1024];
size_t l;
- fgets(s, sizeof s, p_fp);
-
- if (feof(p_fp))
+ if (!fgets(s, sizeof s, p_fp))
{
return NULL;
}