diff options
Diffstat (limited to 'tools/regression/lib/libc/stdio/test-fmemopen.c')
-rw-r--r-- | tools/regression/lib/libc/stdio/test-fmemopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/lib/libc/stdio/test-fmemopen.c b/tools/regression/lib/libc/stdio/test-fmemopen.c index 469cc1a..9f63664 100644 --- a/tools/regression/lib/libc/stdio/test-fmemopen.c +++ b/tools/regression/lib/libc/stdio/test-fmemopen.c @@ -268,7 +268,7 @@ test_append_binary_pos() */ char buf[] = "Hello"; fp = fmemopen(buf, sizeof(buf), "ab+"); - assert(ftell(fp) == 5); + assert(ftell(fp) == strlen(buf)); fclose(fp); } @@ -276,7 +276,7 @@ void test_size_0() { /* - * POSIX mandates that we return EINVAL if size is 0 + * POSIX mandates that we return EINVAL if size is 0. */ FILE *fp; |