summaryrefslogtreecommitdiffstats
path: root/test-strlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-strlcat.c')
-rw-r--r--test-strlcat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test-strlcat.c b/test-strlcat.c
index 5d450dd0..b74ce6f4 100644
--- 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( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
+ 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
}