fix off-by-one bug with 2.6 eeprom handling

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2165 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2003-12-13 23:38:08 +00:00
1 parent 270bd02b4f
commit ee719c4963
1 file changed
+1 -1
+1 -1
View File
@@ -309,7 +309,7 @@ int sensors_read_proc(sensors_chip_name name, int feature, double *value)
if (! strcmp(name.prefix, "eeprom")){
strcat(n, "eeprom");
if ((f = fopen(n, "r")) != NULL) {
eepromoffset = 1 +
eepromoffset =
(the_feature->offset / sizeof(long)) +
(16 * (the_feature->sysctl - EEPROM_SYSCTL1));
for(i = 0; i <= eepromoffset; i++)