summaryrefslogtreecommitdiff
path: root/test-strlcat.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-01-15 23:08:59 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-01-15 23:08:59 +0000
commitca0834218adf25b9cf44601400c1c4a8600d9f5f (patch)
treed03ac3be5c40f1897b2b6802fb3b1a2b0c4e7cfe /test-strlcat.c
parent0ae9da150d599305f27b737214acfa3dc181d0e8 (diff)
Diffstat (limited to 'test-strlcat.c')
-rw-r--r--test-strlcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-strlcat.c b/test-strlcat.c
index b74ce6f4f8f38..48ab38a4df03a 100644
--- a/test-strlcat.c
+++ b/test-strlcat.c
@@ -4,6 +4,6 @@ int
main(void)
{
char buf[3] = "a";
- return( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
- 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
+ return ! (strlcat(buf, "b", sizeof(buf)) == 2 &&
+ buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0');
}