Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJanne Johansson <janne.johansson@safespring.com>2018-10-19 10:12:07 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-10-31 09:39:21 +0300
commit59f8e5e4f8728391fde64eb56530f692fc6ce787 (patch)
treed0d5cc83f560c9730ed4a4a0eed6f6fda1d0dda6 /tests
parent55480908beebc07c91d26968e855f548bd7eea66 (diff)
Trivial sprintf to snprintf conversion. Some linkers warn about unbounded sprintf calls.
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c
index dae49c3d..5e2e571f 100644
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -236,7 +236,7 @@ void fuzz_encoder_settings(const int num_encoders, const int num_setting_changes
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, "