aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-05-04 17:43:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-05-04 17:43:11 +0000
commitb1dfc740a38060c029dbc4fc505b5ffdb3a2fafd (patch)
tree2b7eec2437ca205fe289f6dc5b0a37b01d5c0adf /screen.c
parent7dddf56c081cf1e51dbcbf5e8881701122a1f22f (diff)
downloadrtmux-b1dfc740a38060c029dbc4fc505b5ffdb3a2fafd.tar.gz
rtmux-b1dfc740a38060c029dbc4fc505b5ffdb3a2fafd.tar.bz2
rtmux-b1dfc740a38060c029dbc4fc505b5ffdb3a2fafd.zip
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.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
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);