mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Fix GCC 8 build issues.
This fixes build warnings found by GCC 8. In some cases format truncation is intentional so the warning is just suppressed. ASTERISK-27824 #close Change-Id: I724f146cbddba8b86619d4c4a9931ee877995c84
This commit is contained in:
@@ -374,7 +374,7 @@ void ast_context_add_switch2(struct ast_context *con, const char *value, const c
|
||||
if( dump_extensions ) {
|
||||
struct namelist *x;
|
||||
x = create_name((char*)value);
|
||||
strncpy(x->name2,data,100);
|
||||
strncpy(x->name2, data, 99);
|
||||
if( eval ) {
|
||||
|
||||
ADD_LAST(con->switches,x);
|
||||
|
||||
Reference in New Issue
Block a user