aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc2.c')
-rw-r--r--src/nvim/misc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/misc2.c b/src/nvim/misc2.c
index b9b68c5d0b..d49898815f 100644
--- a/src/nvim/misc2.c
+++ b/src/nvim/misc2.c
@@ -229,7 +229,7 @@ coladvance2 (
if (line[idx] == NUL) {
/* Append spaces */
int correct = wcol - col;
- char_u *newline = alloc(idx + correct + 1);
+ char_u *newline = xmalloc(idx + correct + 1);
int t;
for (t = 0; t < idx; ++t)
@@ -255,7 +255,7 @@ coladvance2 (
if (-correct > csize)
return FAIL;
- newline = alloc(linelen + csize);
+ newline = xmalloc(linelen + csize);
for (t = 0; t < linelen; t++) {
if (t != idx)