From cf5d139a2e00c7af8c8557f32e451db4655e02b5 Mon Sep 17 00:00:00 2001
From: pgen
Date: Fri, 18 Mar 2016 23:09:34 +0100
Subject: Fix an off-by-one error when using -c and -w together
---
smenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
cgit v1.2.3