Fix Coverity defects

CID 147659, 150952 and 147645

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5103
This commit is contained in:
luozhengzheng
2016-09-18 06:08:54 +08:00
committed by Brian Behlendorf
parent 9ea9e0b9a1
commit 30f3f2e13c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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';