summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-07-30 22:02:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-07-30 22:02:10 +0000
commitcae9d2980c9b264c01eabbe0ae68a26cfc60555a (patch)
tree8fbd94972c99ac239bde49828b072e8187c729a8 /sys
parentb69a316db09a30f77552c0d33ae1f6ee3e62d73a (diff)
Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args;
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/tc/ioasicvar.h4
1 files 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;