mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
2cb6ef3ffc82cd7ef967977882ecfffffc621246
gcc 7 complains about possible format truncation: mod_cdr_mongodb.c: In function 'my_on_reporting': mod_cdr_mongodb.c:242:45: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Werror=format-truncation=] snprintf(idx_buffer, sizeof(idx_buffer), "%d", callflow_idx); The char * idx_buffer has a size of 4 Bytes, and according to gcc's calculation it is possible that up to 11 Bytes might be copied into it via int bson_idx. This commit adds an extra 8 Bytes to char * idx_buffer, which silences the warnings. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
…
…
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
Multiple Licenses
219 MiB
Languages
C
64.6%
C++
21.1%
JavaScript
4.8%
Assembly
2%
Makefile
1.1%
Other
5.6%