summaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index 9d7c2ca8cb..ac0cc27085 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1897,7 +1897,7 @@ get_input_buf(void)
garray_T *gap;
/* We use a growarray to store the data pointer and the length. */
- gap = (garray_T *)alloc(sizeof(garray_T));
+ gap = ALLOC_ONE(garray_T);
if (gap != NULL)
{
/* Add one to avoid a zero size. */