fs_cli: be a bit more defensive
This commit is contained in:
parent
7bcd1fe79e
commit
4dbd950d70
|
@ -587,7 +587,7 @@ static void redisplay(void)
|
||||||
const LineInfo *lf = el_line(el);
|
const LineInfo *lf = el_line(el);
|
||||||
const char *c = lf->buffer;
|
const char *c = lf->buffer;
|
||||||
printf("%s",prompt_str);
|
printf("%s",prompt_str);
|
||||||
while (*c && c != lf->lastchar) {
|
while (c <= lf->lastchar && *c) {
|
||||||
putchar(*c);
|
putchar(*c);
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue