Code changes for cppcheck 2.1 warnings

This commit is contained in:
matt335672
2020-06-19 11:07:23 +01:00
parent a57c68f55e
commit 27653f97f2
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -569,6 +569,7 @@ log_message(const enum logLevels lvl, const char *msg, ...)
if (len > LOG_BUFFER_SIZE)
{
log_message(LOG_LEVEL_WARNING, "next message will be truncated");
len = LOG_BUFFER_SIZE;
}
/* forcing the end of message string */