Przeglądaj źródła

crtnone: Fixed vsnprintf.

Branimir Karadžić 7 lat temu
rodzic
commit
174be8d975
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/string.cpp

+ 1 - 1
src/string.cpp

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