summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-06-12 13:41:24 +0000
committerderaadt <deraadt@openbsd.org>2017-06-12 13:41:24 +0000
commit757ffb0c255bb184a8c66793481e27bd63f77aa2 (patch)
tree6fcb30e77aa7e5510d7c21604ba26c63e2c5e464 /usr.sbin/vmd/vmd.h
parentifq_start does OACTIVE and RUNNING checks for the driver (diff)
downloadwireguard-openbsd-757ffb0c255bb184a8c66793481e27bd63f77aa2.tar.xz
wireguard-openbsd-757ffb0c255bb184a8c66793481e27bd63f77aa2.zip
device path should be PATH_MAX. Any NAME_MAX without +1 is suspect
to begin with anyways.
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-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;