projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
690205b
)
src/flac/encode.c : Use flac_snprintf instead of sprintf.
author
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sat, 27 Apr 2013 07:24:31 +0000
(17:24 +1000)
committer
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sun, 28 Apr 2013 09:00:30 +0000
(19:00 +1000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index
327b15f
..
defc1e5
100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-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);