core: revert two of the changes in Bllacky's pull request #187.

`ndigits` is actually an int, used as a field width specifier in
snprintf().

s is an extensively-used pointer.