summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-05-05 10:10:57 +0000
committerTiago Cunha <tcunha@gmx.com>2011-05-05 10:10:57 +0000
commitb5812013efda9025aedb5d395b9bd43640c2419c (patch)
treeba3b0906256b91a2f7636c7d59da2df4d3d1fd9a /screen.c
parenta734b41fda96ddf434873592d61585a68696f6ec (diff)
Sync OpenBSD patchset 901:
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 73e8cd92..292a5f03 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.103 2010-12-11 17:57:28 nicm Exp $ */
+/* $Id: screen.c,v 1.104 2011-05-05 10:10:57 tcunha 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);