summaryrefslogtreecommitdiffstats
path: root/smenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'smenu.c')
-rw-r--r--smenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smenu.c b/smenu.c
index efcd8b0..d50777a 100644
--- a/smenu.c
+++ b/smenu.c
@@ -10063,7 +10063,7 @@ main(int argc, char * argv[])
}
/* Update the size of the longest expanded word. */
/* """"""""""""""""""""""""""""""""""""""""""""" */
- word_real_max_size = cols_real_max_size;
+ word_real_max_size = cols_real_max_size + 1;
}
else if (win.tab_mode)
{
@@ -10611,7 +10611,7 @@ main(int argc, char * argv[])
/* optimal but the loss is tiny and we have the guarantee that */
/* enough place will be allocated. */
/* """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
- tmp_word = xcalloc(word_real_max_size + tab_max_size + 1, 1);
+ tmp_word = xcalloc(1, word_real_max_size + tab_max_size + 1);
search_data.utf8_off_a = xmalloc(word_real_max_size * sizeof(long));
search_data.utf8_len_a = xmalloc(word_real_max_size * sizeof(long));