From 1ccca7df2e38821343193bd3112a9bbb0a9a9830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 19 Feb 2014 21:26:41 -0800 Subject: [PATCH] Fixed VS2013 compile warning. --- include/bx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/string.h b/include/bx/string.h index b7eb3dd..c8e5a6e 100644 --- a/include/bx/string.h +++ b/include/bx/string.h @@ -225,7 +225,7 @@ namespace bx inline int32_t vsnprintf(char* _str, size_t _count, const char* _format, va_list _argList) { #if BX_COMPILER_MSVC - int32_t len = ::vsnprintf(_str, _count, _format, _argList); + int32_t len = ::vsnprintf_s(_str, _count, _count, _format, _argList); return -1 == len ? ::_vscprintf(_format, _argList) : len; #else return ::vsnprintf(_str, _count, _format, _argList);