fix undefined behavior in scanf core
[musl] / crt / crti.c