#6753 Updated missed sprintf

This commit is contained in:
Jamie Newbon 2020-08-25 20:10:51 +01:00
parent a2256edc06
commit a21606664d

View file

@ -200,7 +200,7 @@ Log::print(const char* file, int line, const char* fmt, ...)
#ifndef NDEBUG
snprintf(message, size, "[%s] %s: %s\n\t%s,%d", timestamp, g_priority[priority], buffer, file, line);
#else
sprintf(message, "[%s] %s: %s", timestamp, g_priority[priority], buffer);
snprintf(message, size, "[%s] %s: %s", timestamp, g_priority[priority], buffer);
#endif
output(priority, message);