From 5cf7c0cf9ed87d1800a47cd68c00a6ebae0d726d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 12 Nov 2009 10:52:59 +0000 Subject: 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@ --- sys/dev/videomode/edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3