From 052c7c306190643241b1c41faa8a7f5596200d1c Mon Sep 17 00:00:00 2001 From: "Trever L. Adams" Date: Wed, 28 Jun 2017 06:10:46 -0600 Subject: [PATCH] FS-9785: Fix format-truncation warnings for systems that treat it as an error. --- libs/esl/fs_cli.c | 2 +- libs/freetdm/src/ftdm_io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 237dc483c0..39c445ba5c 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -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}; diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c index c3570d780a..9adcd27509 100644 --- a/libs/freetdm/src/ftdm_io.c +++ b/libs/freetdm/src/ftdm_io.c @@ -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)) {