diff options
author | gahr <gahr@FreeBSD.org> | 2014-06-03 07:11:22 +0000 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2014-06-03 07:11:22 +0000 |
commit | 9bd431f63298f472cfadf410aeae6eb01aa5ff0e (patch) | |
tree | c3f28f74b75e4579bddcfa24ddd91d80f46072eb /tools/regression/lib | |
parent | e14476b9d55828d50be9d6cddad9945f47a9087a (diff) | |
download | FreeBSD-src-9bd431f63298f472cfadf410aeae6eb01aa5ff0e.zip FreeBSD-src-9bd431f63298f472cfadf410aeae6eb01aa5ff0e.tar.gz |
- Use strlen instead of hardcoding a number
- Terminate a sentence with a period
Approved by: cognet
Diffstat (limited to 'tools/regression/lib')
-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; |