]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9785: Fix format-truncation warnings for systems that treat it as an error.
authorTrever L. Adams <trever.adams@gmail.com>
Wed, 28 Jun 2017 12:10:46 +0000 (06:10 -0600)
committerTrever L. Adams <trever.adams@gmail.com>
Fri, 30 Jun 2017 03:35:38 +0000 (21:35 -0600)
libs/esl/fs_cli.c
libs/freetdm/src/ftdm_io.c

index 237dc483c05e6c25bb28c3ff1ff933a76a35f3ab..39c445ba5c16e7e971923bf44c028f7999154ad0 100644 (file)
@@ -76,7 +76,7 @@ static int is_color = 1;
 static int warn_stop = 0;
 static int connected = 0;
 static int allow_ctl_c = 0;
-static char bare_prompt_str[512] = "";
+static char bare_prompt_str[514] = "";
 static int bare_prompt_str_len = 0;
 static char prompt_str[512] = "";
 static char prompt_color[12] = {ESL_SEQ_DEFAULT_COLOR};
index c3570d780a0f7dc2d4e3dd83f0517147d499fa5e..9adcd2750936e38cae5ebd904f6a869acd6404a4 100644 (file)
@@ -3817,7 +3817,7 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_queue_dtmf(ftdm_channel_t *ftdmchan, cons
        if (!ftdmchan->dtmfdbg.file) {
                struct tm currtime;
                time_t currsec;
-               char dfile[1024];
+               char dfile[1138];
 
                currsec = time(NULL);
 
@@ -5636,7 +5636,7 @@ FT_DECLARE(ftdm_status_t) ftdm_unload_modules(void)
 {
        ftdm_hash_iterator_t *i = NULL;
        ftdm_dso_lib_t lib = NULL;
-       char modpath[255] = { 0 };
+       char modpath[256] = { 0 };
 
        /* stop signaling interfaces first as signaling depends on I/O and not the other way around */
        for (i = hashtable_first(globals.module_hash); i; i = hashtable_next(i)) {