From 85ce14956e98a37bbe52a44a645047bc98dd512d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 4 Sep 2023 10:58:36 -0700 Subject: [PATCH] Fixed vsnprintf. --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cpp b/src/string.cpp index fc165fd..0f21313 100644 --- a/src/string.cpp +++ b/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) );