Somebody claiming to be Nicholas Marriott wrote: > Thanks. How about this instead?
This also fixes the problem. No comments on style differences, it's not my bikeshed. Thanks, dave > > Index: tty-term.c > =================================================================== > RCS file: /cvs/src/usr.bin/tmux/tty-term.c,v > retrieving revision 1.82 > diff -u -p -r1.82 tty-term.c > --- tty-term.c 5 Jun 2020 09:32:15 -0000 1.82 > +++ tty-term.c 23 Aug 2020 20:14:19 -0000 > @@ -302,6 +302,8 @@ tty_term_strip(const char *s) > ptr++; > if (*ptr == '>') > ptr++; > + if (*ptr == '\0') > + break; > } > > buf[len++] = *ptr; > -- Dave Vandervies dj3va...@terse.ca Plan your future! Make God laugh!