Do not run off end of string when stripping delays, reported by Dave

Vandervies.
pull/2378/head
nicm 2020-08-24 05:22:28 +00:00
parent d0957529ed
commit 43e3e53908
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ tty_term_strip(const char *s)
ptr++;
if (*ptr == '>')
ptr++;
if (*ptr == '\0')
break;
}
buf[len++] = *ptr;