diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-12-06 20:20:30 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-12-06 20:20:30 +0100 |
commit | 599b01b06d21188cd8d53a7bb9bffd743202a6bb (patch) | |
tree | 544c8f1b48abd4ac374d1e100bb4db344b115542 | |
parent | 36a447b8b9bf2d91c01fcad0d1d5107dfbdce198 (diff) | |
download | calcurse-599b01b06d21188cd8d53a7bb9bffd743202a6bb.tar.gz calcurse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |