diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/tester.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/string/tester.c b/string/tester.c index 74ac34541e..34d4e1c8e0 100644 --- a/string/tester.c +++ b/string/tester.c @@ -177,11 +177,11 @@ DEFUN(main, (argc, argv), int argc AND char **argv) (void) strcpy(one, "abc"); (void) strncpy(one, "xyz", 0); /* Zero-length copy. */ - equal(one, "abc", 10); + equal(one, "abc", 10); (void) strncpy(one, "", 2); /* Zero-length source. */ equal(one, "", 11); - equal(one+1, "", 12); + equal(one+1, "", 12); equal(one+2, "c", 13); (void) strcpy(one, "hi there"); @@ -563,7 +563,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv) else { status = EXIT_FAILURE; - printf("%Z errors.\n", errors); + printf("%Zd errors.\n", errors); } exit(status); } |