From: miod Date: Wed, 30 Jul 2008 22:02:09 +0000 (+0000) Subject: Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=203840b4a50ef857b7bcb96de6fdfc5f8253766d;p=openbsd Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args; ok deraadt@ --- 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;