X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fserver%2Ftelnet_server.c;h=82b7330e90509451ba7a4a24869d438340848454;hb=84df52f9ea78e2d71bde648a16b69d80404c6421;hp=4355f8a6cae600cf96cfe2fff83ad862f2839112;hpb=3813fda44adcea486b7308423a699f63d79273ee;p=fw%2Fopenocd diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 4355f8a6c..82b7330e9 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -130,7 +130,7 @@ void telnet_log_callback(void *priv, const char *file, int line, /* put the command line to its previous state */ telnet_prompt(connection); telnet_write(connection, t_con->line, t_con->line_size); - for (i=t_con->line_size; i>t_con->line_cursor; i--) + for (i = t_con->line_size; i>t_con->line_cursor; i--) telnet_write(connection, "\b", 1); }