diff options
| author | Ian C <ianc@noddybox.co.uk> | 2017-05-10 09:02:14 +0000 | 
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2017-05-10 09:02:14 +0000 | 
| commit | e76a4a8dc605651128a2ed927d93fc12f68ff6b0 (patch) | |
| tree | 12812e1366f71ad79b513864f511835f31739c94 /dbox.c | |
| parent | 67ebfbd2f7073647023d760807fc74cbb507f8c0 (diff) | |
Fixed warning about fgets().
Diffstat (limited to 'dbox.c')
| -rw-r--r-- | dbox.c | 4 | 
1 files changed, 1 insertions, 3 deletions
@@ -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;      }  | 
