Author: tkreuzer
Date: Sun Dec 26 14:54:57 2010
New Revision: 50147
URL:
http://svn.reactos.org/svn/reactos?rev=50147&view=rev
Log:
[VGA_NEW]
Use strlen() istead of sizeof() to get the string length from a pointer. CID 10403.
Modified:
trunk/reactos/drivers/video/miniport/vga_new/vbe.c
Modified: trunk/reactos/drivers/video/miniport/vga_new/vbe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vga…
==============================================================================
--- trunk/reactos/drivers/video/miniport/vga_new/vbe.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vga_new/vbe.c [iso-8859-1] Sun Dec 26 14:54:57
2010
@@ -47,7 +47,7 @@
VideoPortDebugPrint(0, "Vendor: %s Product: %s Revision: %s (%lx)\n",
Vendor, Product, Revision, OemRevision);
for (i = 0; i < (sizeof(BrokenVesaBiosList) / sizeof(PCHAR)); i++)
{
- if (!strncmp(Product, BrokenVesaBiosList[i], sizeof(BrokenVesaBiosList[i])))
return FALSE;
+ if (!strncmp(Product, BrokenVesaBiosList[i], strlen(BrokenVesaBiosList[i])))
return FALSE;
}
/* For Brookdale-G (Intel), special hack used */