diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-05-04 17:43:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-05-04 17:43:11 +0000 |
commit | b1dfc740a38060c029dbc4fc505b5ffdb3a2fafd (patch) | |
tree | 2b7eec2437ca205fe289f6dc5b0a37b01d5c0adf | |
parent | 7dddf56c081cf1e51dbcbf5e8881701122a1f22f (diff) | |
download | rtmux-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.
-rw-r--r-- | screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |