mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -849,10 +849,10 @@ static char *cli_console_dial(struct ast_cli_entry *e, int cmd, struct ast_cli_a
|
||||
if (a->argc == e->args + 1) {
|
||||
char *ext = NULL, *con = NULL;
|
||||
s = ast_ext_ctx(pvt, a->argv[e->args], &ext, &con);
|
||||
ast_debug(1, "provided '%s', exten '%s' context '%s'\n",
|
||||
a->argv[e->args], mye, myc);
|
||||
mye = ext;
|
||||
myc = con;
|
||||
ast_debug(1, "provided '%s', exten '%s' context '%s'\n",
|
||||
a->argv[e->args], mye, myc);
|
||||
}
|
||||
|
||||
/* supply default values if needed */
|
||||
|
Reference in New Issue
Block a user