X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/73aca81b50073109b137bba659d38af11d7194ac..022b8bdab4bc87d590cb930db853e246e42e46ae:/test-strlcpy.c diff --git a/test-strlcpy.c b/test-strlcpy.c index c7d182aa..05fa5094 100644 --- a/test-strlcpy.c +++ b/test-strlcpy.c @@ -1,8 +1,9 @@ #include int -main(int argc, char **argv) +main(void) { - strlcpy(argv[0], argv[1], 10); - return 0; + char buf[2] = ""; + return( ! (1 == strlcpy(buf, "a", sizeof(buf)) && + 'a' == buf[0] && '\0' == buf[1])); }