src/flac/encode.c : Use flac_snprintf instead of sprintf.
This commit is contained in:
parent
690205baf3
commit
113ec9d806
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user