From ffa2a01c96922071558f26e513f85581935259a2 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Thu, 23 Apr 2015 00:02:51 +0200 Subject: [PATCH] Add missing change to xreallocarray() in previous --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 78fb8a1..f5f57e3 100644 --- a/src/util.c +++ b/src/util.c @@ -323,7 +323,7 @@ iconvert(const char *in_str, const char *from, const char *to, int mode) count = sizeof(buf) - bufavail - 1; output_size += count; - op = output = xrealloc(output, output_size, sizeof(char)); + op = output = xreallocarray(output, output_size, sizeof(char)); op += out_pos; memcpy(op, buf, count); out_pos += count;