diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-25 19:01:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-25 19:01:02 +0000 |
commit | f7a0e912eef2bd2b34338b78a92c9b3888836327 (patch) | |
tree | 77714c189d55d27551fc19a3d0d4890cdb5b54fd | |
parent | 6741175e1a1bd97fb1e510990706d03b5f3aa6ff (diff) |
strncmp() the correct size when looking for ki2c companion.
-rw-r--r-- | sys/arch/macppc/dev/snapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c index 8b7db3d3c02..1753dd1d942 100644 --- a/sys/arch/macppc/dev/snapper.c +++ b/sys/arch/macppc/dev/snapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snapper.c,v 1.5 2004/01/14 16:37:24 miod Exp $ */ +/* $OpenBSD: snapper.c,v 1.6 2004/12/25 19:01:01 miod Exp $ */ /* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -385,7 +385,7 @@ snapper_defer(struct device *dev) for (dv = alldevs.tqh_first; dv; dv=dv->dv_list.tqe_next) if (strncmp(dv->dv_xname, "ki2c", 4) == 0 && - strncmp(dv->dv_parent->dv_xname, "macobio", 4) == 0) + strncmp(dv->dv_parent->dv_xname, "macobio", 7) == 0) sc->sc_i2c = dv; if (sc->sc_i2c == NULL) { printf("%s: unable to find i2c\n", sc->sc_dev.dv_xname); |