[MPlayer-cvslog] r30447 - trunk/gui/skin/font.c

reimar subversion at mplayerhq.hu
Wed Jan 27 20:45:16 CET 2010


Author: reimar
Date: Wed Jan 27 20:45:16 2010
New Revision: 30447

Log:
Simplify and correct loop condition, also avoids a compiler warning for unused result.

Modified:
   trunk/gui/skin/font.c

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Wed Jan 27 20:42:24 2010	(r30446)
+++ trunk/gui/skin/font.c	Wed Jan 27 20:45:16 2010	(r30447)
@@ -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;


More information about the MPlayer-cvslog mailing list