diff options
Diffstat (limited to 'contrib/libarchive/cpio/test/test_format_newc.c')
-rw-r--r-- | contrib/libarchive/cpio/test/test_format_newc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libarchive/cpio/test/test_format_newc.c b/contrib/libarchive/cpio/test/test_format_newc.c index 4ee901b..cb8d7cf 100644 --- a/contrib/libarchive/cpio/test/test_format_newc.c +++ b/contrib/libarchive/cpio/test/test_format_newc.c @@ -157,9 +157,9 @@ DEFINE_TEST(test_format_newc) /* Verify that nothing went to stderr. */ if (canSymlink()) { - strncat(result, "2 blocks\n", sizeof(result) - strlen(result)); + strncat(result, "2 blocks\n", sizeof(result) - strlen(result) -1); } else { - strncat(result, "1 block\n", sizeof(result) - strlen(result)); + strncat(result, "1 block\n", sizeof(result) - strlen(result) -1); } assertTextFileContents(result, "newc.err"); |