Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed

This commit is contained in:
Charles Pigott
2020-06-27 09:01:31 +01:00
parent 224acb78b0
commit 64b1c70fdd
7 changed files with 10 additions and 10 deletions

View File

@@ -90,7 +90,7 @@ struct CStrA : public CBlobT<char>
}
/** Add formatted string (like vsprintf) at the end of existing contents. */
int AddFormatL(const char *format, va_list args)
int AddFormatL(const char *format, va_list args) WARN_FORMAT(2, 0)
{
size_t addSize = max<size_t>(strlen(format), 16);
addSize += addSize / 2;