Index: tools/regression/lib/libc/stdio/test-fmemopen.c =================================================================== --- tools/regression/lib/libc/stdio/test-fmemopen.c (revision 266971) +++ tools/regression/lib/libc/stdio/test-fmemopen.c (working copy) @@ -268,7 +268,7 @@ */ char buf[] = "Hello"; fp = fmemopen(buf, sizeof(buf), "ab+"); - assert(ftell(fp) == 5); + assert(ftell(fp) == strlen(buf)); fclose(fp); } @@ -276,7 +276,7 @@ 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;