summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-05-04 17:43:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-05-04 17:43:12 +0000
commite8502760358de5157243da1712fbd997bec8b894 (patch)
tree3053e5692713bd1edef72f24c98a9ef07cbbb02a /usr.bin
parentaa24c8fa5ecd2bafeada05c35d56132fd6c03c4a (diff)
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 'usr.bin')
-rw-r--r--usr.bin/tmux/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c
index fcd97f33592..abef8d8aa93 100644
--- a/usr.bin/tmux/screen.c
+++ b/usr.bin/tmux/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.17 2010/12/11 17:56:01 nicm Exp $ */
+/* $OpenBSD: screen.c,v 1.18 2011/05/04 17:43:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);