Browse Source

crtnone: Fixed vsnprintf.

Branimir Karadžić 7 years ago
parent
commit
174be8d975
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/string.cpp

+ 1 - 1
src/string.cpp

@@ -1065,7 +1065,7 @@ namespace bx
 
 
 			if (err.isOk() )
 			if (err.isOk() )
 			{
 			{
-				return size;
+				return size - 1 /* size without '\0' terminator */;
 			}
 			}
 		}
 		}