summaryrefslogtreecommitdiff
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index 853706027..a881aade0 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -1452,7 +1452,7 @@ split_button_string(char_u *button_string, int *n_buttons)
if (*p == DLG_BUTTON_SEP)
++count;
- array = (char **)alloc((count + 1) * sizeof(char *));
+ array = ALLOC_MULT(char *, count + 1);
count = 0;
if (array != NULL)