summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-12 13:41:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-12 13:41:25 +0000
commit3d670c08ba6f83da072a4aa072a96fe83ce16d56 (patch)
treeaa480a2a449003fd95ad3cbfc8c1fec1dfad6ef2 /usr.sbin/vmd
parent64b353fb183466d1e1d030500cb98016b2286c26 (diff)
device path should be PATH_MAX. Any NAME_MAX without +1 is suspect
to begin with anyways.
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r--usr.sbin/vmd/vmd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index a24c959de3e..be621835eaa 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.55 2017/05/30 17:56:47 tedu Exp $ */
+/* $OpenBSD: vmd.h,v 1.56 2017/06/12 13:41:24 deraadt Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -139,7 +139,7 @@ struct vmop_create_params {
struct vmboot_params {
int vbp_fd;
off_t vbp_partoff;
- char vbp_device[NAME_MAX];
+ char vbp_device[PATH_MAX];
char vbp_image[PATH_MAX];
uint32_t vbp_bootdev;
uint32_t vbp_howto;