Trivial sprintf to snprintf conversion. Some linkers warn about unbounded sprintf calls.

Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
This commit is contained in:
Janne Johansson 2018-10-19 09:12:07 +02:00 committed by Jean-Marc Valin
parent 55480908be
commit 59f8e5e4f8
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

View file

@ -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, "