From ae5cb1b14bd46a3a46e681ff7b8b609d95443769 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 3 Jun 2014 07:11:22 +0000 Subject: [PATCH] - Use strlen instead of hardcoding a number - Terminate a sentence with a period Approved by: cognet --- tools/regression/lib/libc/stdio/test-fmemopen.c | 4 ++-- 1 file 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 469cc1a21f4..9f636640a1a 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;