summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/edit.c b/commands/edit.c
index 6f42abc107..4578c7ad88 100644
--- a/commands/edit.c
+++ b/commands/edit.c
@@ -176,7 +176,7 @@ static struct line *line_realloc(int len, struct line *line)
while (size < len)
size <<= 1;
- line->data = realloc(line->data, size);
+ line->data = xrealloc(line->data, size);
return line;
}