telnet: fix strage blank spaces at beginning of telnet lines
commitf68dff66904321392c3137db7eb40e8633c2e507
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 21 Jan 2010 15:41:54 +0000 (21 16:41 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 31 Jan 2010 14:06:02 +0000 (31 15:06 +0100)
tree647ad0c6a743a4e4a4380f5ca606cd9ac570fe17
parente11ce3e6b00f02eba9a15673a54f5345eba8398b
telnet: fix strage blank spaces at beginning of telnet lines

Sometimes we saw two strange blank spaces at the beginning
of the telnet lines.

progress
  ogress
>

This patch fixes this problem:

progress
progress
>

The code changes are *reasonably* clean, but perhaps it could be
made a bit more elegant, but I didn't want to change things after
I finished diagnosis/testing & submitting the patch.

The problem was that logging can send the text and the newline
separately in two different requests and the telnet code would
incorrectly remove the prompt from the end of a line.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/server/telnet_server.c