Commit 45a8b643 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt/tests: Avoid sizeof in traces.

parent 19b25188
...@@ -1237,7 +1237,7 @@ static void test_fopen_s( void ) ...@@ -1237,7 +1237,7 @@ static void test_fopen_s( void )
file = fopen(name, "r"); file = fopen(name, "r");
ok(file != 0, "fopen failed\n"); ok(file != 0, "fopen failed\n");
len = fread(buff, 1, sizeof(name), file); len = fread(buff, 1, sizeof(name), file);
ok(len == sizeof(name), "File length supposed to be %d, not %d\n", sizeof(name), len); ok(len == sizeof(name), "File length is %d\n", len);
buff[sizeof(name)] = '\0'; buff[sizeof(name)] = '\0';
ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name); ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name);
...@@ -1278,7 +1278,7 @@ static void test__wfopen_s( void ) ...@@ -1278,7 +1278,7 @@ static void test__wfopen_s( void )
file = fopen(name, "r"); file = fopen(name, "r");
ok(file != 0, "fopen failed\n"); ok(file != 0, "fopen failed\n");
len = fread(buff, 1, sizeof(name), file); len = fread(buff, 1, sizeof(name), file);
ok(len == sizeof(name), "File length supposed to be %d, not %d\n", sizeof(name), len); ok(len == sizeof(name), "File length is %d\n", len);
buff[sizeof(name)] = '\0'; buff[sizeof(name)] = '\0';
ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name); ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name);
......
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