Fix wrong size argument in ipmi_sdr_list_cache_fromfile() - CID#1149056

This commit is contained in:
Zdenek Styblik 2015-01-20 18:58:15 +01:00
parent c56458da18
commit 55b1a41855

View File

@ -3977,7 +3977,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
}
while (feof(fp) == 0) {
memset(&header, 0, 5);
memset(&header, 0, sizeof(header));
bc = fread(&header, 1, 5, fp);
if (bc <= 0)
break;