From c14e88bd12858ba0c7df3378390375c3623d77a4 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 7 Sep 2014 18:11:08 +0000 Subject: [PATCH] [apitests/crt] pass the correct buffer size svn path=/trunk/; revision=64068 --- rostests/apitests/crt/_vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/apitests/crt/_vsnprintf.c b/rostests/apitests/crt/_vsnprintf.c index 02ef0b72007..722e8ebe07e 100644 --- a/rostests/apitests/crt/_vsnprintf.c +++ b/rostests/apitests/crt/_vsnprintf.c @@ -19,7 +19,7 @@ static void call_varargs(char* buf, size_t buf_size, int expected_ret, LPCSTR fo int ret; /* Test the basic functionality */ va_start(args, formatString); - ret = _vsnprintf(buf, 255, formatString, args); + ret = _vsnprintf(buf, buf_size, formatString, args); ok(expected_ret == ret, "Test failed: expected %i, got %i.\n", expected_ret, ret); } -- 2.17.1