Ver código fonte

Bugfix: StringFormat was using a static temporary buffer

Jorrit Rouwe 3 anos atrás
pai
commit
57b4824324
1 arquivos alterados com 1 adições e 1 exclusões
  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, ...)
 string StringFormat(const char *inFMT, ...)
 {
 {
-	static char buffer[1024];
+	char buffer[1024];
 
 
 	// Format the string
 	// Format the string
 	va_list list;
 	va_list list;