diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-11 13:40:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-11 13:40:06 +0000 |
commit | 522d032aac014cd97153e44e2cab2a449a76ddf3 (patch) | |
tree | 23affbf1d70c1f4ccd7994d0c7e50a32f77c29da /sys | |
parent | 07af4b1c971dc67a1501af85f9d085961a3aa8bd (diff) |
off by one
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/eso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/eso.c b/sys/dev/pci/eso.c index 5e691665a20..9c0fd9491ce 100644 --- a/sys/dev/pci/eso.c +++ b/sys/dev/pci/eso.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eso.c,v 1.7 1999/12/05 18:35:33 espie Exp $ */ +/* $OpenBSD: eso.c,v 1.8 2000/01/11 13:40:05 deraadt Exp $ */ /* $NetBSD: eso.c,v 1.3 1999/08/02 17:37:43 augustss Exp $ */ /* @@ -235,7 +235,7 @@ eso_attach(parent, self, aux) sc->sc_revision = PCI_REVISION(pa->pa_class); - if (sc->sc_revision <= + if (sc->sc_revision < sizeof (eso_rev2model) / sizeof (eso_rev2model[0])) printf(": %s", eso_rev2model[sc->sc_revision]); else |