=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window.c,v retrieving revision 1.187 retrieving revision 1.188 diff -u -r1.187 -r1.188 --- src/usr.bin/tmux/window.c 2017/03/21 09:49:10 1.187 +++ src/usr.bin/tmux/window.c 2017/04/20 09:39:07 1.188 @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.187 2017/03/21 09:49:10 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.188 2017/04/20 09:39:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -710,11 +710,11 @@ } /* Retuns the printable flags on a window, empty string if no flags set. */ -char * +const char * window_printable_flags(struct session *s, struct winlink *wl) { - char flags[32]; - int pos; + static char flags[32]; + int pos; pos = 0; if (wl->flags & WINLINK_ACTIVITY) @@ -732,7 +732,7 @@ if (wl->window->flags & WINDOW_ZOOMED) flags[pos++] = 'Z'; flags[pos] = '\0'; - return (xstrdup(flags)); + return (flags); } struct window_pane *