summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-09-18 06:08:54 +0800
committerBrian Behlendorf <[email protected]>2016-09-17 15:08:54 -0700
commit30f3f2e13c01bf1c881b2f3bb1236fca9f87a8e5 (patch)
tree8370f7f96bc86a483a9c754e05f7d3e504a7aa81 /module/zfs
parent9ea9e0b9a1f15b1e3b6b89bbc29d2a68df87ab3c (diff)
Fix Coverity defects
CID 147659, 150952 and 147645 Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5103
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/zfs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c
index 14de14826..0385bfcbb 100644
--- a/module/zfs/zfs_ioctl.c
+++ b/module/zfs/zfs_ioctl.c
@@ -4303,7 +4303,7 @@ zfs_ioc_recv(zfs_cmd_t *zc)
strchr(zc->zc_value, '%'))
return (SET_ERROR(EINVAL));
- (void) strcpy(tofs, zc->zc_value);
+ (void) strlcpy(tofs, zc->zc_value, sizeof (tofs));
tosnap = strchr(tofs, '@');
*tosnap++ = '\0';