From 203840b4a50ef857b7bcb96de6fdfc5f8253766d Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 30 Jul 2008 22:02:09 +0000 Subject: [PATCH] Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args; ok deraadt@ --- sys/dev/tc/ioasicvar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/tc/ioasicvar.h b/sys/dev/tc/ioasicvar.h index b554e9aff52..01212d1a459 100644 --- a/sys/dev/tc/ioasicvar.h +++ b/sys/dev/tc/ioasicvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ioasicvar.h,v 1.7 2004/06/28 02:28:43 aaron Exp $ */ +/* $OpenBSD: ioasicvar.h,v 1.8 2008/07/30 22:02:09 miod Exp $ */ /* $NetBSD: ioasicvar.h,v 1.14 2000/10/17 09:45:49 nisimura Exp $ */ /* @@ -39,7 +39,7 @@ struct ioasic_dev { }; struct ioasicdev_attach_args { - char iada_modname[TC_ROM_LLEN]; + char iada_modname[TC_ROM_LLEN + 1]; tc_offset_t iada_offset; tc_addr_t iada_addr; void *iada_cookie; -- 2.20.1