summaryrefslogtreecommitdiff
path: root/src/gui_motif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r--src/gui_motif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 1693df974..875df500c 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -2538,7 +2538,7 @@ gui_mch_dialog(
for (p = buts; *p; ++p)
if (*p == DLG_BUTTON_SEP)
++butcount;
- buttons = (Widget *)alloc(butcount * sizeof(Widget));
+ buttons = ALLOC_MULT(Widget, butcount);
if (buttons == NULL)
{
vim_free(buts);