From: Nikolay Sivov nsivov@codeweavers.com
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/msvcirt/tests/msvcirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcirt/tests/msvcirt.c b/dlls/msvcirt/tests/msvcirt.c index 22c1efbb38e..aacfa96d2dc 100644 --- a/dlls/msvcirt/tests/msvcirt.c +++ b/dlls/msvcirt/tests/msvcirt.c @@ -2404,7 +2404,7 @@ static void test_strstreambuf(void) ssb2.base.eback = ssb2.base.base; ssb2.base.gptr = ssb2.base.base + 2; ssb2.base.egptr = ssb2.base.base + 4; - strcpy(ssb2.base.base, "Check"); + memcpy(ssb2.base.base, "Check", 5); ret = (int) call_func1(p_strstreambuf_doallocate, &ssb2); ok(ret == 1, "return value %d\n", ret); ok(ssb2.base.ebuf == ssb2.base.base + 10, "expected %p, got %p\n", ssb2.base.base + 10, ssb2.base.ebuf);
This merge request was approved by Piotr Caban.