aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);