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