Mercurial > mplayer.hg
changeset 32845:2fdf7550ebb2
Cosmetic: Don't use a constant for size.
author | ib |
---|---|
date | Sat, 19 Feb 2011 16:08:47 +0000 |
parents | 002a3bf7ce85 |
children | 7e40682bf120 |
files | gui/skin/skin.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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++;