mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
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 char *c = lf->buffer;
|
||||
printf("%s",prompt_str);
|
||||
while (*c && c != lf->lastchar) {
|
||||
while (c <= lf->lastchar && *c) {
|
||||
putchar(*c);
|
||||
c++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user