Fixed buffering in Glibc