]> git.proxmox.com Git - mirror_zfs.git/commit
Fix buffer length in strlcpy()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Apr 2019 16:10:59 +0000 (09:10 -0700)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2019 16:10:59 +0000 (09:10 -0700)
commitac4985e48dfcf030418df0f0ce9bf153ba12ba03
tree6049fc324b3bdea4f353b57c4a1a00553a271825
parentd93d4b1acdf53a25ad21e20ddfca3b0d58a06cdf
Fix buffer length in strlcpy()

The length used for the strlcpy() used the size of zv_value
when it should have used the size of zc_name.  Correct this
typo.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8595
Closes #8596
lib/libzfs_core/libzfs_core.c