mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +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:
@@ -588,7 +588,7 @@ static struct adsi_subscript *getsubbyname(struct adsi_script *state, char *name
|
||||
}
|
||||
|
||||
if (state->numsubs > 127) {
|
||||
ast_log(LOG_WARNING, "No more subscript space at line %d of %s\n", lineno, script);
|
||||
ast_log(LOG_WARNING, "No more subscript space at line %d of %s\n", lineno, S_OR(script, "unknown"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@@ -224,7 +224,7 @@ struct findme_user {
|
||||
long digts;
|
||||
int ynidx;
|
||||
int state;
|
||||
char dialarg[256];
|
||||
char dialarg[768];
|
||||
/*! Collected digits to accept/decline the call. */
|
||||
char yn[MAX_YN_STRING];
|
||||
/*! TRUE if the outgoing call is answered. */
|
||||
|
Reference in New Issue
Block a user