bugfix: readLine() did not stop reading if line exactly filled buffer