summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ami.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-08-16 01:12:47 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-08-16 01:12:47 +0000
commita1752dda0b048972402c297a55e5073bf69fac20 (patch)
treecb3a013b16e7bb8410f8849498e8cbfa88e78b37 /sys/dev/ic/ami.c
parent08292787802a803cd3887751840486d134097773 (diff)
Fix a few retardos. Yelled at by deraadt@
Diffstat (limited to 'sys/dev/ic/ami.c')
-rw-r--r--sys/dev/ic/ami.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index cbe5d0bd331..8adfe551b44 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.58 2005/08/15 23:22:45 marco Exp $ */
+/* $OpenBSD: ami.c,v 1.59 2005/08/16 01:12:46 marco Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -2119,7 +2119,7 @@ ami_global_hsdisk(sc, bd, p)
if (!ami_drv_inq(sc, ch, tg, 0, &inqbuf))
strlcpy(bd->bd_vendor, inqbuf.vendor,
- 8 + 16 + 4 + 1);
+ sizeof(bd->bd_vendor));
if (!ami_drv_inq(sc, ch, tg, 0x80, &vpdbuf))
strlcpy(bd->bd_serial, vpdbuf.serial,
@@ -2304,7 +2304,7 @@ ami_ioctl_disk(sc, bd)
if (!ami_drv_inq(sc, ch, tg, 0, &inqbuf))
strlcpy(bd->bd_vendor, inqbuf.vendor,
- 8 + 16 + 4 + 1); /* vendor prod rev zero */
+ sizeof(bd->bd_vendor));
if (!ami_drv_inq(sc, ch, tg, 0x80, &vpdbuf))
strlcpy(bd->bd_serial, vpdbuf.serial,