[MPlayer-cvslog] r32932 - trunk/gui/skin/skin.c
ib
subversion at mplayerhq.hu
Sat Feb 19 17:08:48 CET 2011
Author: ib
Date: Sat Feb 19 17:08:47 2011
New Revision: 32932
Log:
Cosmetic: Don't use a constant for size.
Modified:
trunk/gui/skin/skin.c
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Sat Feb 19 14:23:16 2011 (r32931)
+++ trunk/gui/skin/skin.c Sat Feb 19 17:08:47 2011 (r32932)
@@ -56,10 +56,10 @@ static void ERRORMESSAGE( const char * f
char tmp[512];
va_list ap;
va_start( ap,format );
- vsnprintf( p,512,format,ap );
+ vsnprintf( p,sizeof(p),format,ap );
va_end( ap );
mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_SKIN_ERRORMESSAGE,linenumber,p );
- snprintf( tmp,512,MSGTR_SKIN_ERRORMESSAGE,linenumber,p );
+ snprintf( tmp,sizeof(tmp),MSGTR_SKIN_ERRORMESSAGE,linenumber,p );
gtkMessageBox( GTK_MB_FATAL,tmp );
}
@@ -697,7 +697,7 @@ int skinRead( char * dname )
appInitStruct( skinAppMPlayer );
linenumber=0;
- while (fgets(tmp, 255, skinFile))
+ while (fgets(tmp, sizeof(tmp), skinFile))
{
linenumber++;
More information about the MPlayer-cvslog
mailing list