=================================================================== RCS file: /cvs/mandoc/test-strlcpy.c,v retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- mandoc/test-strlcpy.c 2010/01/01 17:14:31 1.1 +++ mandoc/test-strlcpy.c 2015/10/06 18:32:20 1.3 @@ -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 ! (strlcpy(buf, "a", sizeof(buf)) == 1 && + buf[0] == 'a' && buf[1] == '\0'); }