diff --git a/Core/Libraries/Source/debug/debug_debug.cpp b/Core/Libraries/Source/debug/debug_debug.cpp index 77049750322..d04148c7423 100644 --- a/Core/Libraries/Source/debug/debug_debug.cpp +++ b/Core/Libraries/Source/debug/debug_debug.cpp @@ -1254,7 +1254,7 @@ void Debug::StartOutput(DebugIOInterface::StringType type, const char *fmt, ...) // potentially dangerous (fixed string buffer...) va_list va; va_start(va,fmt); - wvsprintf(curSource,fmt,va); + vsnprintf(curSource,sizeof(curSource),fmt,va); va_end(va); __ASSERT(curSource[sizeof(curSource)-1]==0); }