diff options
author | nicm <nicm> | 2020-08-24 05:22:28 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-08-24 05:22:28 +0000 |
commit | 43e3e5390861cebdc9f3c87ebf7ed1414cf9b596 (patch) | |
tree | 49633f9c8fd8159825d79f6b64d2861ea9bd973b /tty-term.c | |
parent | d0957529edcdd3f616d0361972dd819b8b4c29d0 (diff) | |
download | rtmux-43e3e5390861cebdc9f3c87ebf7ed1414cf9b596.tar.gz rtmux-43e3e5390861cebdc9f3c87ebf7ed1414cf9b596.tar.bz2 rtmux-43e3e5390861cebdc9f3c87ebf7ed1414cf9b596.zip |
Do not run off end of string when stripping delays, reported by Dave
Vandervies.
Diffstat (limited to 'tty-term.c')
-rw-r--r-- | tty-term.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -302,6 +302,8 @@ tty_term_strip(const char *s) ptr++; if (*ptr == '>') ptr++; + if (*ptr == '\0') + break; } buf[len++] = *ptr; |