Commit 70b3e2b0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt/tests: Add overlapped memory move sprintf test.

parent 46dcaa5b
......@@ -802,6 +802,11 @@ static void test_sprintf( void )
ok(r==2, "r = %d\n", r);
ok(!strcmp(buffer, "\x82\xa0"), "failed: \"%s\"\n", buffer);
strcpy(buffer, " string to copy");
r = p_sprintf(buffer, buffer+1);
ok(r==14, "r = %d\n", r);
ok(!strcmp(buffer, "string to copy"), "failed: \"%s\"\n", buffer);
setlocale(LC_ALL, "C");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment