Explorar o código

Bugfix: StringFormat was using a static temporary buffer

Jorrit Rouwe %!s(int64=3) %!d(string=hai) anos
pai
achega
57b4824324
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jolt/Core/StringTools.cpp

+ 1 - 1
Jolt/Core/StringTools.cpp

@@ -13,7 +13,7 @@ JPH_NAMESPACE_BEGIN
 
 string StringFormat(const char *inFMT, ...)
 {
-	static char buffer[1024];
+	char buffer[1024];
 
 	// Format the string
 	va_list list;