1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Fix invalid sizeof expressions in HeadSpin.cpp

This commit is contained in:
2014-05-24 19:16:02 -04:00
parent de9fedb4b4
commit 83b8f6c10b

View File

@ -118,7 +118,7 @@ void ErrorAssert(int line, const char* file, const char* fmt, ...)
char msg[1024];
va_list args;
va_start(args, fmt);
vsnprintf(msg, sizeof(msg), fmt, args);
vsnprintf(msg, arrsize(msg), fmt, args);
#ifdef HS_DEBUGGING
if (s_GuiAsserts)
{
@ -163,7 +163,7 @@ void DebugMsg(const char* fmt, ...)
char msg[1024];
va_list args;
va_start(args, fmt);
vsnprintf(msg, sizeof(msg), fmt, args);
vsnprintf(msg, arrsize(msg), fmt, args);
if (DebugIsDebuggerPresent())
{