fix behavior of gets when input line contains a null byte
[musl] / src / internal / syscall.c