aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c b/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
index 2de1ba20c..ecdabbd14 100644
--- a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
+++ b/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
@@ -706,9 +706,10 @@ test_redact(const char *snapshot1, const char *snapshot2)
nvlist_free(snapnv);
nvlist_free(required);
- strncpy(bookmark, snapshot1, sizeof (bookmark) - 1);
+ strlcpy(bookmark, snapshot1, sizeof (bookmark));
*strchr(bookmark, '@') = '\0';
- strncat(bookmark, "#testbookmark", sizeof (bookmark));
+ strlcat(bookmark, "#testbookmark", sizeof (bookmark) -
+ strlen(bookmark));
zfs_destroy(bookmark);
}