Fixed buffer overflow problem with no linefeed in robot output