mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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:
committed by
Brian Behlendorf
parent
9ea9e0b9a1
commit
30f3f2e13c
@@ -7440,7 +7440,7 @@ main(int argc, char **argv)
|
||||
*/
|
||||
char buf[16384];
|
||||
int fd = open(ZFS_DEV, O_RDWR);
|
||||
(void) strcpy((void *)buf, argv[2]);
|
||||
(void) strlcpy((void *)buf, argv[2], sizeof (buf));
|
||||
return (!!ioctl(fd, ZFS_IOC_POOL_FREEZE, buf));
|
||||
} else {
|
||||
(void) fprintf(stderr, gettext("unrecognized "
|
||||
|
||||
Reference in New Issue
Block a user