diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-12-02 01:46:22 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-12-02 01:46:22 +0000 |
| commit | a0e1420b07d953c8b5d31eed9fad47c4f75a8739 (patch) | |
| tree | 9a0ea53f39686510dc9f16c1f22a974b182986f1 | |
| parent | 2a944ecdef6ec56a163f59716f63966c97463abf (diff) | |
Notes
| -rw-r--r-- | sys/boot/ofw/libofw/devicename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/devicename.c b/sys/boot/ofw/libofw/devicename.c index c2c5f365fc92..3cb93e5a974d 100644 --- a/sys/boot/ofw/libofw/devicename.c +++ b/sys/boot/ofw/libofw/devicename.c @@ -91,7 +91,7 @@ ofw_parsedev(struct ofw_devdesc **dev, const char *devspec, const char **path) if (OF_getprop(handle, "device_type", type, sizeof(type)) == -1) continue; for (i = 0; (dv = devsw[i]) != NULL; i++) { - if (strncmp(dv->dv_name, type, strlen(type)) == 0) + if (strncmp(dv->dv_name, type, strlen(dv->dv_name)) == 0) goto found; } } |
