1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Don't use strnvis for the title as it breaks UTF-8. set-titles is now

off by default and we have to trust the terminal can understand what we
send it anyway so there isn't any harm.
This commit is contained in:
Nicholas Marriott 2011-05-04 17:43:11 +00:00
parent 7dddf56c08
commit b1dfc740a3

View File

@ -96,7 +96,7 @@ screen_set_title(struct screen *s, const char *title)
{
char tmp[BUFSIZ];
strnvis(tmp, title, sizeof tmp, VIS_OCTAL|VIS_TAB|VIS_NL);
strlcpy(tmp, title, sizeof tmp);
xfree(s->title);
s->title = xstrdup(tmp);