aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index 9ad88597..a5d57cd7 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -305,6 +305,8 @@ tty_term_strip(const char *s)
ptr++;
if (*ptr == '>')
ptr++;
+ if (*ptr == '\0')
+ break;
}
buf[len++] = *ptr;