]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-strlcat.c
Ignore unreasonably large spacing modifiers in tbl layouts.
[mandoc.git] / test-strlcat.c
index 5d450dd04d4e5ad531ce8dee04f2a801f0ee3537..48ab38a4df03a6c88aea2abb9a3c0f85b5db9e1d 100644 (file)
@@ -1,8 +1,9 @@
 #include <string.h>
 
 int
-main(int argc, char **argv)
+main(void)
 {
-       strlcat(argv[0], argv[1], 10);
-       return 0;
+       char buf[3] = "a";
+       return ! (strlcat(buf, "b", sizeof(buf)) == 2 &&
+           buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0');
 }