mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -2786,11 +2786,11 @@ static char *message_template_parse_emailbody(const char *configuration)
|
||||
switch (tmpwrite[1]) {
|
||||
case 'n':
|
||||
memmove(tmpwrite + len, tmpwrite + 2, strlen(tmpwrite + 2) + 1);
|
||||
strncpy(tmpwrite, "\n", len);
|
||||
tmpwrite[0] = '\n';
|
||||
break;
|
||||
case 't':
|
||||
memmove(tmpwrite + len, tmpwrite + 2, strlen(tmpwrite + 2) + 1);
|
||||
strncpy(tmpwrite, "\t", len);
|
||||
tmpwrite[0] = '\t';
|
||||
break;
|
||||
default:
|
||||
ast_log(LOG_NOTICE, "Substitution routine does not support this character: %c\n", tmpwrite[1]);
|
||||
|
Reference in New Issue
Block a user