From 2f1e6d8c263753d46dcb40ec8f7ef08059a5e16b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 20 Dec 2017 21:01:12 +0200 Subject: Small sync from gnulib into regex. --- support/regexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/regexec.c') diff --git a/support/regexec.c b/support/regexec.c index 05deab00..0587ad24 100644 --- a/support/regexec.c +++ b/support/regexec.c @@ -1327,8 +1327,8 @@ push_fail_stack (struct re_fail_stack_t *fs, int str_idx, int dest_node, if (fs->num == fs->alloc) { struct re_fail_stack_ent_t *new_array; - new_array = realloc (fs->stack, (sizeof (struct re_fail_stack_ent_t) - * fs->alloc * 2)); + new_array = re_realloc (fs->stack, struct re_fail_stack_ent_t, + fs->alloc * 2); if (new_array == NULL) return REG_ESPACE; fs->alloc *= 2; -- cgit v1.2.3