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
Go to file
Sebastian Kemper e114c6382e FS-11783: [core] quiet gcc truncation warning
With -Wstringop-truncation gcc warns about calls to bounded string
manipulation function "strncpy" that may either truncate the copied
string or leave the destination unchanged. To avoid the warning when the
result is not expected to be NUL-terminated, it is suggested to call
"memcpy" instead.

src/switch_core_media.c: In function 'switch_core_media_patch_sdp':
src/switch_core_media.c:11854:4: error: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Werror=stringop-truncation]
    strncpy(q, strchr(a_engine->adv_sdp_ip, ':') ? "6 " : "4 ", 2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This commit follows gcc's recommendation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-14 19:12:03 +02:00
build FS-11732 [mod_kazoo] check otp version for ei_init 2019-03-27 18:01:46 +00:00
clients/flex
cmake_modules
conf Merge pull request #1351 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:feature/FS-10530_mod_opusfile to master 2019-02-27 14:47:57 -06:00
debian FS-11704 "DAEMON_OPTS=-ncwait -nonat" in freeswitch.server causing startup failure 2019-03-12 23:49:16 +04:00
docker
docs FS-11400: [Build-System] FreeSWITCH Sound packages on Windows. 2018-09-20 17:47:20 +03:00
dtd
fonts
fscomm
htdocs
html5/verto Merge pull request #1665 in FS/freeswitch from ~MARCELL-G/freeswitch:bugfix/FS-11591-outdated-adapterjs to master 2019-01-30 14:16:26 +00:00
images
libs Merge pull request #1578 in FS/freeswitch from ~TOMP/freeswitch:bugfix/FS-9657-fix-HEP-TLS-capture to master 2019-02-26 12:44:01 -06:00
scripts [FS-11507] use explicit architecture in control file 2018-11-07 00:45:11 +02:00
src FS-11783: [core] quiet gcc truncation warning 2019-04-14 19:12:03 +02:00
support-d
tests/unit FS-11615 fix compiler warning 2019-01-17 15:38:13 +08:00
w32 FS-11759: [Build-System] Update libks to 1.2.0 and signalwire-client-c to 1.1.0 on Windows 2019-04-03 20:31:27 +04:00
web
yum
.clang-format
.gitattributes
.gitignore FS-11442 [mod_test] new module, mod_test - mock ASR interface. 2018-12-20 10:17:50 -05:00
.mailmap
Freeswitch.2017.sln FS-11555: [mod_signalwire] Initial commit. 2018-12-21 21:45:59 +04:00
Freeswitch.2017.sln.bat FS-11400: [Build-System] FreeSWITCH Sound packages on Windows. 2018-09-20 17:47:20 +03:00
INSTALL
Makefile.am FS-11487 convert tests to Makefile.am 2018-12-20 10:19:39 -05:00
acinclude.m4
bootstrap.sh
cc.sh
cluecon.tmpl
cluecon2.tmpl
cluecon2_small.tmpl
cluecon_small.tmpl
configure.ac Merge pull request #1351 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:feature/FS-10530_mod_opusfile to master 2019-02-27 14:47:57 -06:00
devel-bootstrap.sh
erlang.spec
freeswitch-config-rayo.spec
freeswitch-sounds-en-ca-june.spec
freeswitch-sounds-en-us-allison.spec
freeswitch-sounds-en-us-callie.spec
freeswitch-sounds-fr-ca-june.spec
freeswitch-sounds-music.spec
freeswitch-sounds-pt-BR-karina.spec
freeswitch-sounds-ru-RU-elena.spec
freeswitch-sounds-sv-se-jakob.spec
freeswitch.spec Merge pull request #1351 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:feature/FS-10530_mod_opusfile to master 2019-02-27 14:47:57 -06:00
msbuild.cmd FS-11400: [Build-System] FreeSWITCH Sound packages on Windows. 2018-09-20 17:47:20 +03:00
swig_common.i