aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-strlcpy.c')
-rw-r--r--test-strlcpy.c7
1 files changed, 4 insertions, 3 deletions
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 <string.h>
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]));
}