dtmail: Resolve format-overflow issues

This commit is contained in:
Peter Howkins
2021-12-23 19:51:24 +00:00
committed by Jon Trulson
parent 16c3ed3650
commit 238385530d
3 changed files with 3 additions and 3 deletions

View File

@@ -1398,7 +1398,7 @@ RFCMIME::formatBodies(DtMailEnv & error,
free(bp_contents);
}
else {
char *content_type = new char[100];
char *content_type = new char[100 + sizeof(boundary)];
sprintf(content_type, "Content-Type: multipart/mixed;boundary=%s",
boundary);