Sebastian Kemper eded5965a4 FS-10939 mod_cdr_mongodb: fix format truncation warnings with gcc 7
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>
2018-02-03 19:00:09 +01:00
2014-03-24 12:39:59 +00:00
2017-06-05 15:11:52 -05:00
2015-05-28 12:47:19 -05:00
2015-10-09 11:10:32 -07:00
2010-04-01 21:00:45 -04:00
2015-12-15 17:02:49 +00:00
2014-12-26 17:22:20 +00:00
2017-11-20 11:30:50 -05:00
2014-08-01 14:47:38 -05:00
2013-09-16 22:59:26 +05:00
2013-09-16 22:59:26 +05:00
2013-04-04 20:52:47 -05:00
2013-12-23 22:43:06 +05:00
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 unl
Multiple Licenses 196 MiB
Languages
C 65.2%
C++ 20.8%
JavaScript 4.8%
Assembly 2%
Makefile 1%
Other 5.4%