=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/tmux/screen.c 2010/12/11 17:56:01 1.17 --- src/usr.bin/tmux/screen.c 2011/05/04 17:43:11 1.18 *************** *** 1,4 **** ! /* $OpenBSD: screen.c,v 1.17 2010/12/11 17:56:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen.c,v 1.18 2011/05/04 17:43:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 96,102 **** { char tmp[BUFSIZ]; ! strnvis(tmp, title, sizeof tmp, VIS_OCTAL|VIS_TAB|VIS_NL); xfree(s->title); s->title = xstrdup(tmp); --- 96,102 ---- { char tmp[BUFSIZ]; ! strlcpy(tmp, title, sizeof tmp); xfree(s->title); s->title = xstrdup(tmp);