src/flac/encode.c : Use flac_snprintf instead of sprintf.

This commit is contained in:
Erik de Castro Lopo 2013-04-27 17:24:31 +10:00
parent 690205baf3
commit 113ec9d806

View File

@ -2615,7 +2615,7 @@ void print_stats(const EncoderSession *encoder_session)
FLAC__ASSERT(encoder_session->total_samples_to_encode > 0);
if (uesize) sprintf(ratiostr, "%0.3f", ratio); else sprintf(ratiostr, "N/A");
if (uesize) flac_snprintf(ratiostr, sizeof(ratiostr), "%0.3f", ratio); else flac_snprintf(ratiostr, sizeof(ratiostr), "N/A");
if(samples_written == encoder_session->total_samples_to_encode) {
stats_print_name(2, encoder_session->inbasefilename);