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:
@@ -3814,7 +3814,7 @@ static int peer_status(struct iax2_peer *peer, char *status, int statuslen)
|
||||
/*! \brief Show one peer in detail */
|
||||
static char *handle_cli_iax2_show_peer(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
|
||||
{
|
||||
char status[30];
|
||||
char status[64];
|
||||
char cbuf[256];
|
||||
struct iax2_peer *peer;
|
||||
struct ast_str *codec_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
|
||||
@@ -6836,7 +6836,7 @@ struct show_peers_context {
|
||||
static void _iax2_show_peers_one(int fd, struct mansession *s, struct show_peers_context *cont, struct iax2_peer *peer)
|
||||
{
|
||||
char name[256] = "";
|
||||
char status[20];
|
||||
char status[64];
|
||||
int retstatus;
|
||||
struct ast_str *encmethods = ast_str_alloca(256);
|
||||
|
||||
|
Reference in New Issue
Block a user