From 599b01b06d21188cd8d53a7bb9bffd743202a6bb Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 6 Dec 2012 20:20:30 +0100 Subject: wins_show(): Fix size of the slave window array The slave window array was just big enough to hold a single element, whereas two elements are written/accessed. Fix this off-by-one error in the array declaration. Note that this messed up the panel layout when using clang as a compiler. Signed-off-by: Lukas Fleischer --- src/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wins.c b/src/wins.c index 23894e7..fd8333d 100644 --- a/src/wins.c +++ b/src/wins.c @@ -373,7 +373,7 @@ void wins_show(WINDOW * win, const char *label) void wins_get_config(void) { enum win win_master; - enum win win_slave[1]; + enum win win_slave[2]; unsigned master_is_left; /* Get the screen configuration */ -- cgit v1.2.3-70-g09d2