From 83b8f6c10ba3608feff03dff58099fe16f8b8190 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 24 May 2014 19:16:02 -0400 Subject: [PATCH] Fix invalid sizeof expressions in HeadSpin.cpp --- Sources/Plasma/CoreLib/HeadSpin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/CoreLib/HeadSpin.cpp b/Sources/Plasma/CoreLib/HeadSpin.cpp index 580b6d6c..0b218d0c 100644 --- a/Sources/Plasma/CoreLib/HeadSpin.cpp +++ b/Sources/Plasma/CoreLib/HeadSpin.cpp @@ -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()) {