# HG changeset patch # User ib # Date 1298131727 0 # Node ID 2fdf7550ebb279235432987c0ef6774b023549f9 # Parent 002a3bf7ce8541552e7c2993a41e53e6f9bf2b14 Cosmetic: Don't use a constant for size. diff -r 002a3bf7ce85 -r 2fdf7550ebb2 gui/skin/skin.c --- a/gui/skin/skin.c Sat Feb 19 13:23:16 2011 +0000 +++ b/gui/skin/skin.c Sat Feb 19 16:08:47 2011 +0000 @@ -56,10 +56,10 @@ 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 @@ appInitStruct( skinAppMPlayer ); linenumber=0; - while (fgets(tmp, 255, skinFile)) + while (fgets(tmp, sizeof(tmp), skinFile)) { linenumber++;