summaryrefslogtreecommitdiffstats
path: root/gui/skin/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/skin/font.c')
-rw-r--r--gui/skin/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/skin/font.c b/gui/skin/font.c
index e3f1bee5cc..2da2148c41 100644
--- a/gui/skin/font.c
+++ b/gui/skin/font.c
@@ -83,9 +83,9 @@ int fntRead( char * path,char * fname )
if ( ( f=fopen( tmp,"rt" ) ) == NULL )
{ free( Fonts[id] ); return -3; }
- while ( !feof( f ) )
+ while ( fgets( tmp,255,f ) )
{
- fgets( tmp,255,f ); linenumber++;
+ linenumber++;
// remove any kind of newline, if any
tmp[strcspn(tmp, "\n\r")] = 0;