summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2016-03-18 23:09:34 +0100
committerpgen <p.gen.progs@gmail.com>2016-03-18 23:09:34 +0100
commitcf5d139a2e00c7af8c8557f32e451db4655e02b5 (patch)
tree7e21b0d859e76bc3087c17952305235c393806c3
parent874b657f867b259879a5be31dc3f19772ee44e2c (diff)
Fix an off-by-one error when using -c and -w together
-rw-r--r--smenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smenu.c b/smenu.c
index 40ed07d..42a62c8 100644
--- a/smenu.c
+++ b/smenu.c
@@ -5647,7 +5647,7 @@ main(int argc, char *argv[])
/* Sets all columns to the same size when -w and -c are both set */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
if (win.wide)
- for (col_index = 0; col_index < cols_number - 1; col_index++)
+ for (col_index = 0; col_index < cols_number; col_index++)
{
col_max_size[col_index] = cols_max_size;
col_real_max_size[col_index] = cols_real_max_size;