ref: 59f8e5e4f8728391fde64eb56530f692fc6ce787
parent: 55480908beebc07c91d26968e855f548bd7eea66
author: Janne Johansson <janne.johansson@safespring.com>
date: Fri Oct 19 05:12:07 EDT 2018
Trivial sprintf to snprintf conversion. Some linkers warn about unbounded sprintf calls. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -236,7 +236,7 @@
int frame_size_enum = get_frame_size_enum(frame_size, sampling_rate);
force_channel = IMIN(force_channel, num_channels);
- sprintf(debug_info,
+ snprintf(debug_info, sizeof(debug_info),
"fuzz_encoder_settings: %d kHz, %d ch, application: %d, "
"%d bps, force ch: %d, vbr: %d, vbr constraint: %d, complexity: %d, "
"max bw: %d, signal: %d, inband fec: %d, pkt loss: %d%%, lsb depth: %d, "