fs_cli: be a bit more defensive

This commit is contained in:
Travis Cross 2011-09-23 21:44:55 +00:00
parent 7bcd1fe79e
commit 4dbd950d70
1 changed files with 1 additions and 1 deletions

View File

@ -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 && c != lf->lastchar) {
while (c <= lf->lastchar && *c) {
putchar(*c);
c++;
}