[apitests/crt]
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 7 Sep 2014 18:11:08 +0000 (18:11 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 7 Sep 2014 18:11:08 +0000 (18:11 +0000)
pass the correct buffer size

svn path=/trunk/; revision=64068

rostests/apitests/crt/_vsnprintf.c

index 02ef0b7..722e8eb 100644 (file)
@@ -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);
 }