Browse Source

Fixed vsnprintf.

Branimir Karadžić 2 years ago
parent
commit
85ce14956e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/string.cpp

+ 1 - 1
src/string.cpp

@@ -1197,7 +1197,7 @@ namespace bx
 
 	int32_t vsnprintf(char* _out, int32_t _max, const char* _format, va_list _argList)
 	{
-		if (1 < _max)
+		if (0 < _max)
 		{
 			StaticMemoryBlockWriter writer(_out, uint32_t(_max) );