git.ckatri.com
/
mandoc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
When finding a bogus database entry,
[mandoc.git]
/
test-strlcat.c
diff --git
a/test-strlcat.c
b/test-strlcat.c
index 5d450dd04d4e5ad531ce8dee04f2a801f0ee3537..48ab38a4df03a6c88aea2abb9a3c0f85b5db9e1d 100644
(file)
--- a/
test-strlcat.c
+++ b/
test-strlcat.c
@@
-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');
}