summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-06 20:20:30 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-12-06 20:20:30 +0100
commit599b01b06d21188cd8d53a7bb9bffd743202a6bb (patch)
tree544c8f1b48abd4ac374d1e100bb4db344b115542
parent36a447b8b9bf2d91c01fcad0d1d5107dfbdce198 (diff)
downloadcalcurse-599b01b06d21188cd8d53a7bb9bffd743202a6bb.zip
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 <calcurse@cryptocrack.de>
-rw-r--r--src/wins.c2
1 files changed, 1 insertions, 1 deletions
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 */