[Pommed-commits] r494 - in trunk: . pommed
jblache at alioth.debian.org
jblache at alioth.debian.org
Thu Jun 12 19:18:54 UTC 2008
Author: jblache
Date: 2008-06-12 19:18:53 +0000 (Thu, 12 Jun 2008)
New Revision: 494
Modified:
trunk/ChangeLog
trunk/pommed/pommed.c
Log:
Fix array boundary check.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-06-07 14:48:12 UTC (rev 493)
+++ trunk/ChangeLog 2008-06-12 19:18:53 UTC (rev 494)
@@ -2,6 +2,7 @@
--------------------
version 1.20:
+ - pommed: fix array boundary check in check_machine_dmi().
version 1.19:
- pommed: get rid of the libsmbios dependency on Intel machines.
Modified: trunk/pommed/pommed.c
===================================================================
--- trunk/pommed/pommed.c 2008-06-07 14:48:12 UTC (rev 493)
+++ trunk/pommed/pommed.c 2008-06-12 19:18:53 UTC (rev 494)
@@ -560,7 +560,7 @@
};
/* Check vendor name */
- for (i = 0; i < sizeof(vendor_node); i++)
+ for (i = 0; i < sizeof(vendor_node) / sizeof(vendor_node[0]); i++)
{
fd = open(vendor_node[i], O_RDONLY);
if (fd > 0)
More information about the Pommed-commits
mailing list