[MPlayer-cvslog] r32907 - trunk/gui/skin/font.c
ib
subversion at mplayerhq.hu
Wed Feb 16 16:24:08 CET 2011
Author: ib
Date: Wed Feb 16 16:24:08 2011
New Revision: 32907
Log:
Don't use constant not related to definition size
of variable (even if smaller in this case).
Modified:
trunk/gui/skin/font.c
Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c Wed Feb 16 16:16:15 2011 (r32906)
+++ trunk/gui/skin/font.c Wed Feb 16 16:24:08 2011 (r32907)
@@ -81,7 +81,7 @@ int fntRead( char * path,char * fname )
return -3;
}
- while ( fgets( tmp,255,f ) )
+ while ( fgets( tmp,sizeof(tmp),f ) )
{
// remove any kind of newline, if any
tmp[strcspn(tmp, "\n\r")] = 0;
More information about the MPlayer-cvslog
mailing list