X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fvars%2Ftime.cpp;h=ab962f25135de201025be79a8a610fe7f7ea1dca;hb=de341d2ff259af44a6ad67df57eb670a8a8c6da8;hp=4c081513873dda29fad90da815ae41a8f3a52092;hpb=e2cc1fabeeb51c046f8706d482a52502995ec0c0;p=vlc diff --git a/modules/gui/skins2/vars/time.cpp b/modules/gui/skins2/vars/time.cpp index 4c08151387..ab962f2513 100644 --- a/modules/gui/skins2/vars/time.cpp +++ b/modules/gui/skins2/vars/time.cpp @@ -126,7 +126,7 @@ const string StreamTime::formatTime( int seconds, bool bShortFormat ) const char *psz_time = new char[MSTRTIME_MAX_SIZE]; if( bShortFormat && (seconds < 60 * 60) ) { - snprintf( psz_time, MSTRTIME_MAX_SIZE, " %02d:%02d", + snprintf( psz_time, MSTRTIME_MAX_SIZE, "%02d:%02d", (int) (seconds / 60 % 60), (int) (seconds % 60) ); }