From e8502760358de5157243da1712fbd997bec8b894 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 May 2011 17:43:12 +0000 Subject: 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. --- usr.bin/tmux/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 @@ -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); -- cgit v1.2.3