summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ngctl/list.c')
-rw-r--r--usr.sbin/ngctl/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ngctl/list.c b/usr.sbin/ngctl/list.c
index aeb74fb..93e1024 100644
--- a/usr.sbin/ngctl/list.c
+++ b/usr.sbin/ngctl/list.c
@@ -99,7 +99,7 @@ ListCmd(int ac, char **av)
printf("There are %d total %snodes:\n",
nlist->numnames, named_only ? "named " : "");
for (k = 0; k < nlist->numnames; k++) {
- char path[NG_PATHLEN+1];
+ char path[NG_PATHSIZ];
char *av[3] = { "list", "-n", path };
snprintf(path, sizeof(path),
OpenPOWER on IntegriCloud