diff options
-rw-r--r-- | lib/libzfs/libzfs_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c index d029b61e7..7f947c186 100644 --- a/lib/libzfs/libzfs_util.c +++ b/lib/libzfs/libzfs_util.c @@ -962,7 +962,7 @@ zfs_strcmp_pathname(char *name, char *cmp, int wholedisk) if (name[0] != '/') return (zfs_strcmp_shortname(name, cmp_name, wholedisk)); - strncpy(path_name, name, MAXPATHLEN); + (void) strlcpy(path_name, name, MAXPATHLEN); path_len = strlen(path_name); cmp_len = strlen(cmp_name); |