#6753 Updated missed sprintf
This commit is contained in:
parent
a2256edc06
commit
a21606664d
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ Log::print(const char* file, int line, const char* fmt, ...)
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
snprintf(message, size, "[%s] %s: %s\n\t%s,%d", timestamp, g_priority[priority], buffer, file, line);
|
snprintf(message, size, "[%s] %s: %s\n\t%s,%d", timestamp, g_priority[priority], buffer, file, line);
|
||||||
#else
|
#else
|
||||||
sprintf(message, "[%s] %s: %s", timestamp, g_priority[priority], buffer);
|
snprintf(message, size, "[%s] %s: %s", timestamp, g_priority[priority], buffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
output(priority, message);
|
output(priority, message);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue