summaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-03-12 15:26:13 -0700
committerBrian Behlendorf <[email protected]>2009-03-12 15:26:13 -0700
commit6a59551cb7d942de27b68871cff8cf2bbe1795f7 (patch)
treebcbf1018ab2bc1c9077c19d08c58c20f6aa1e759 /lib/libzfs
parenta03187bb3bc611a9b547361d06339db88b254eaf (diff)
parent21a51bafc88bf83e1dcdd61b7c2e7781d748733e (diff)
Merge branch 'fix-branch' into refs/top-bases/zfs-branch
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/libzfs_sendrecv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c
index 280c4a4b3..35f12c0d5 100644
--- a/lib/libzfs/libzfs_sendrecv.c
+++ b/lib/libzfs/libzfs_sendrecv.c
@@ -1642,7 +1642,7 @@ zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap,
* Determine name of destination snapshot, store in zc_value.
*/
(void) strcpy(zc.zc_value, tosnap);
- (void) strncat(zc.zc_value, drrb->drr_toname+choplen,
+ (void) strlcat(zc.zc_value, drrb->drr_toname+choplen,
sizeof (zc.zc_value));
if (!zfs_name_valid(zc.zc_value, ZFS_TYPE_SNAPSHOT)) {
zcmd_free_nvlists(&zc);