fix broken ttyname[_r] (failure to null-terminate result)
[musl] / crt / Scrt1.c