From fe60938686c92e6dc83a63ee7873488f3eb5eade Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Fri, 23 Sep 2011 22:40:02 +0000 Subject: [PATCH] fs_cli: exclude last character in buffer on redisplay --- libs/esl/fs_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 6bc96e27e1..9e5a6e051b 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -587,7 +587,7 @@ static void redisplay(void) const LineInfo *lf = el_line(el); const char *c = lf->buffer; printf("%s",prompt_str); - while (c <= lf->lastchar && *c) { + while (c < lf->lastchar && *c) { putchar(*c); c++; }