Mercurial > mplayer.hg
changeset 36703:712751eb3ad6
Increase buffer.
Additionally, use sizeof.
author | ib |
---|---|
date | Fri, 07 Feb 2014 18:48:49 +0000 |
parents | fb14d0cfc36d |
children | a37f9abea303 |
files | gui/dialog/menu.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/menu.c Fri Feb 07 18:17:05 2014 +0000 +++ b/gui/dialog/menu.c Fri Feb 07 18:48:49 2014 +0000 @@ -635,8 +635,8 @@ { int aid = ((sh_audio_t *)demuxer->a_streams[i])->aid; int selected_id = (audio_id == aid || (audio_id == -1 && aid == demuxer_default_audio_track(demuxer))); - char tmp[32]; - snprintf( tmp,32,MSGTR_GUI_TrackN,aid ); + char tmp[64]; + snprintf( tmp,sizeof(tmp),MSGTR_GUI_TrackN,aid ); AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,selected_id,( aid << 16 ) + ivSetAudio ); } } @@ -668,8 +668,8 @@ AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu, MSGTR_GUI__none_, pos == -1, (-1 << 16) + ivSetSubtitle ); for ( i=0;i < global_sub_size;i++ ) { - char tmp[32]; - snprintf( tmp, 32, MSGTR_GUI_TrackN, i ); + char tmp[64]; + snprintf( tmp, sizeof(tmp), MSGTR_GUI_TrackN, i ); AddMenuCheckItem( window1,(const char*)empty1px_xpm,SubMenu,tmp,pos == i,( i << 16 ) + ivSetSubtitle ); } }