Mathias Kresin 0e78af22d9 firmware-utils: mkdlinkfw: fix error handling
fread() doesn't set errno, ferror need to be used to check for errors.
While at it, check if we read the expect number of elements.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2019-01-13 18:31:10 +01:00
..
2016-12-16 22:39:22 +01:00
2019-01-07 22:08:44 +01:00
2018-11-01 13:49:52 +01:00
2018-12-29 18:12:28 +01:00
2018-11-25 19:23:03 +01:00
2017-01-03 14:24:33 +01:00
2017-05-25 19:01:07 +02:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2018-04-11 21:02:50 +02:00
2018-12-24 17:05:57 +01:00
2016-12-16 22:39:22 +01:00
2018-01-17 08:52:54 +01:00
2018-05-05 07:13:41 +02:00
2018-06-08 09:56:26 +02:00
2018-01-20 20:22:01 +01:00