gcc 9 fixes

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2020-06-29 19:38:38 +02:00
parent 4b353afa7a
commit 97f63a11a6
2 changed files with 5 additions and 1 deletions

View File

@ -424,6 +424,8 @@ void fixupEncodedHeaderLine(char *buf, int buflen){
}
if(need_encoding == 1 && ret == OK){
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
strncat(puf, tmpbuf, sizeof(puf)-strlen(puf)-1);
}
else {