Fixed buffer overflow when reading multiline response