+13
−2
Loading
Don't use atoi() function which doesn't detect errors, switch to strtol and error out on failures. Also add a range check while being at it. Signed-off-by:Gerd Hoffmann <kraxel@redhat.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com>