aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-04-20 12:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2017-04-20 12:01:14 +0100
commit48371216df07c588180b8e2246930a96e94de62b (patch)
treeb7fe5d01adee8885d766616fcea5ff41d773ec01 /window.c
parente30f9dc1fae848d659295a9dfab0a5e0cf4e1a46 (diff)
parent21993105e53da0f5aae583b494c83f1cbbf48b1b (diff)
downloadrtmux-48371216df07c588180b8e2246930a96e94de62b.tar.gz
rtmux-48371216df07c588180b8e2246930a96e94de62b.tar.bz2
rtmux-48371216df07c588180b8e2246930a96e94de62b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r--window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/window.c b/window.c
index e7a0aa52..dc2fddbb 100644
--- a/window.c
+++ b/window.c
@@ -709,12 +709,12 @@ window_destroy_panes(struct window *w)
}
}
-/* Retuns the printable flags on a window, empty string if no flags set. */
-char *
-window_printable_flags(struct session *s, struct winlink *wl)
+const char *
+window_printable_flags(struct winlink *wl)
{
- char flags[32];
- int pos;
+ struct session *s = wl->session;
+ static char flags[32];
+ int pos;
pos = 0;
if (wl->flags & WINLINK_ACTIVITY)
@@ -732,7 +732,7 @@ window_printable_flags(struct session *s, struct winlink *wl)
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';
flags[pos] = '\0';
- return (xstrdup(flags));
+ return (flags);
}
struct window_pane *