Fixes for GCC 9

Various fixes for issues caught by gcc 9.  Mostly snprintf
trying to copy to a buffer potentially too small.

ASTERISK-28412

Change-Id: I9e85a60f3c81d46df16cfdd1c329ce63432cf32e
This commit is contained in:
George Joseph
2019-05-10 09:48:28 -06:00
parent 92832bf176
commit 4337895aee
7 changed files with 11 additions and 11 deletions

View File

@@ -3267,7 +3267,7 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
if (do_include || do_exec) {
if (c) {
char *cur2;
char real_inclusion_name[256];
char real_inclusion_name[525];
/* Strip off leading and trailing "'s and <>'s */
while((*c == '<') || (*c == '>') || (*c == '\"')) c++;