From b1dfc740a38060c029dbc4fc505b5ffdb3a2fafd Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 May 2011 17:43:11 +0000 Subject: [PATCH] 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. --- screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.c b/screen.c index 1860e247..4228d4ab 100644 --- a/screen.c +++ b/screen.c @@ -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);