X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/6d55934c65607a0db77403b6b364af25e7ae1a70..f3f0161d5d0a0053fa4efd98d8fbb08242d7778b:/test-strlcpy.c diff --git a/test-strlcpy.c b/test-strlcpy.c index 05fa5094..12e1db39 100644 --- a/test-strlcpy.c +++ b/test-strlcpy.c @@ -4,6 +4,6 @@ int main(void) { char buf[2] = ""; - return( ! (1 == strlcpy(buf, "a", sizeof(buf)) && - 'a' == buf[0] && '\0' == buf[1])); + return ! (strlcpy(buf, "a", sizeof(buf)) == 1 && + buf[0] == 'a' && buf[1] == '\0'); }