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 1292bc8eb4..dd502f6912 100644
--- a/src/nvim/misc2.c
+++ b/src/nvim/misc2.c
@@ -230,7 +230,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)
@@ -256,7 +256,7 @@ coladvance2 (
if (-correct > csize)
return FAIL;
- newline = alloc(linelen + csize);
+ newline = xmalloc(linelen + csize);
for (t = 0; t < linelen; t++) {
if (t != idx)