libflashrom.c: Use correct type for sizeof

As we want to allocate an array of `flashrom_board_info` structs, use
that type in sizeof. This did not cause problems as `board_info` was at
least as big as `flashrom_board_info`, but nothing guarantees it.

Change-Id: I66e875d54c9a7cc59898b072b052282b0b5cbb2f
Signed-off-by: Angel Pons <>
Reviewed-by: HAOUAS Elyes <>
Reviewed-by: Paul Menzel <>
Reviewed-by: Nico Huber <>
Reviewed-by: Michael Niewöhner
Tested-by: build bot (Jenkins) <>
1 file changed