From 757ffb0c255bb184a8c66793481e27bd63f77aa2 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 12 Jun 2017 13:41:24 +0000 Subject: [PATCH] device path should be PATH_MAX. Any NAME_MAX without +1 is suspect to begin with anyways. --- usr.sbin/vmd/vmd.h | 4 ++-- 1 file 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 @@ -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; -- 2.20.1