summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-11-12 10:52:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-11-12 10:52:59 +0000
commit5cf7c0cf9ed87d1800a47cd68c00a6ebae0d726d (patch)
tree44aa6f9884ec48ba23fe82b70a1bfb42c9f8d903 /sys
parentea4b92c704834d0e4e715c07f782f619e1366456 (diff)
Use the number of products in the terminating condition when iterating
through the products array not the number of vendors. found by parfait ok deraadt@ miod@ mglocker@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/videomode/edid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/videomode/edid.c b/sys/dev/videomode/edid.c
index 0558a505731..89f833a5ca9 100644
--- a/sys/dev/videomode/edid.c
+++ b/sys/dev/videomode/edid.c
@@ -109,7 +109,7 @@ edid_findproduct(const char *vendor, uint16_t product)
#ifdef EDIDVERBOSE
int n;
- for (n = 0; n < edid_nvendors; n++)
+ for (n = 0; n < edid_nproducts; n++)
if ((edid_products[n].product == product) &&
(memcmp(edid_products[n].vendor, vendor, 3) == 0))
return (edid_products[n].name);