msvcrt/tests: Avoid sizeof in a trace.

This commit is contained in:
Alexandre Julliard 2008-12-20 13:33:08 +01:00
parent 2a5cf54f05
commit d77eba57f1
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ static void test_asciimode2(void)
ok(getc(fp) == '0', "first char not 0\n"); ok(getc(fp) == '0', "first char not 0\n");
memset(ibuf, 0, sizeof(ibuf)); memset(ibuf, 0, sizeof(ibuf));
i = fread(ibuf, 1, sizeof(ibuf), fp); i = fread(ibuf, 1, sizeof(ibuf), fp);
ok(i == sizeof(ibuf), "fread i %d != sizeof(ibuf) %d\n", i, sizeof(ibuf)); ok(i == sizeof(ibuf), "fread i %d != sizeof(ibuf)\n", i);
ok(0 == strncmp(ibuf, obuf+1, sizeof(ibuf)), "ibuf != obuf\n"); ok(0 == strncmp(ibuf, obuf+1, sizeof(ibuf)), "ibuf != obuf\n");
fclose(fp); fclose(fp);
unlink("ascii2.tst"); unlink("ascii2.tst");