[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] src/pk-editor.c (pk_cmd_editor): Use xrealloc instead of rea
From: |
John Darrington |
Subject: |
[PATCH 3/4] src/pk-editor.c (pk_cmd_editor): Use xrealloc instead of realloc |
Date: |
Sat, 9 Nov 2019 18:10:40 +0100 |
---
src/pk-editor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pk-editor.c b/src/pk-editor.c
index cf811c7..890a6df 100644
--- a/src/pk-editor.c
+++ b/src/pk-editor.c
@@ -87,7 +87,7 @@ pk_cmd_editor (int argc, struct pk_cmd_arg argv[], uint64_t
uflags)
{
if (i % STEP == 0)
{
- newline = realloc (newline, size);
+ newline = xrealloc (newline, size);
size = size + 128;
}
if (c == '\n')
--
2.11.0