fmap: Correctly check minimum firmware size

This commit is contained in:
Richard Hughes 2020-12-09 15:47:25 +00:00
parent 056dfff741
commit a9060f671c

View File

@ -21,7 +21,7 @@ fmap_size (FuFmap *fmap)
if (fmap == NULL)
return -1;
return sizeof (*fmap) + (fmap->nareas * sizeof (FuFmap));
return sizeof (*fmap) + (fmap->nareas * sizeof (FuFmapArea));
}
/* brute force linear search */