summaryrefslogtreecommitdiff
path: root/usr/src/cmd/halt/halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/halt/halt.c')
-rw-r--r--usr/src/cmd/halt/halt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/cmd/halt/halt.c b/usr/src/cmd/halt/halt.c
index 3b57e02c64..8464619a68 100644
--- a/usr/src/cmd/halt/halt.c
+++ b/usr/src/cmd/halt/halt.c
@@ -25,6 +25,7 @@
*/
/*
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2015 by Delphix. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -720,7 +721,7 @@ validate_zfs_err_out:
*/
static int
get_zfs_bootfs_arg(const char *arg, const char ** fpth, int *is_zfs,
- char *bootfs_arg)
+ char *bootfs_arg)
{
zfs_handle_t *zhp = NULL;
zpool_handle_t *zpoolp = NULL;
@@ -728,8 +729,8 @@ get_zfs_bootfs_arg(const char *arg, const char ** fpth, int *is_zfs,
struct mnttab mnt;
char *poolname = NULL;
char physpath[MAXPATHLEN];
- char mntsp[ZPOOL_MAXNAMELEN];
- char bootfs[ZPOOL_MAXNAMELEN];
+ char mntsp[ZFS_MAX_DATASET_NAME_LEN];
+ char bootfs[ZFS_MAX_DATASET_NAME_LEN];
int rc = 0;
size_t mntlen = 0;
size_t msz;