Commit f94cd3e8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix secstotimestr

parent cded4bcd
...@@ -134,11 +134,11 @@ char *secstotimestr( char *psz_buffer, int i_seconds ) ...@@ -134,11 +134,11 @@ char *secstotimestr( char *psz_buffer, int i_seconds )
d = div( d.quot, 60 ); d = div( d.quot, 60 );
if( d.quot ) if( d.quot )
snprintf( psz_buffer, MSTRTIME_MAX_SIZE, "%d:%2.2d:%2.2d", snprintf( psz_buffer, MSTRTIME_MAX_SIZE, "%u:%02u:%02u",
d.quot, d.rem, i_seconds ); d.quot, d.rem, i_seconds );
else else
snprintf( psz_buffer, MSTRTIME_MAX_SIZE, "%2.2d:%2.2d", snprintf( psz_buffer, MSTRTIME_MAX_SIZE, "%02u:%02u",
d.quot, i_seconds ); d.rem, i_seconds );
return psz_buffer; return psz_buffer;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment