fff-random: Use strtol to parse numbers #68

Closed
fbl wants to merge 1 commits from fbl/firmware:strtol into master

1 Commits

Author SHA1 Message Date
Fabian Bläse ed03a64a84 fff-random: Use strtol to parse numbers
Other than atoi, strtol allows to detect parsing errors.
Therefore atoi is replaced with strtol and appropriate error
checks are added.

Fixes: #33

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2021-01-09 11:17:08 +01:00