lib: strto: fix incorrect handling of specified base