aboutsummaryrefslogtreecommitdiffstats
path: root/support/regexec.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-12-22 14:27:43 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-12-22 14:27:43 +0200
commit04235ff1134e404b133917020fa4eac1038947a0 (patch)
tree3d91d5c2b96c17048cd70491082c008977985c26 /support/regexec.c
parenta8f1600b7ba13834f476e455d382d188b49eef9e (diff)
parentd2dde96decab77927a04af75fd9183666c25a624 (diff)
downloadegawk-04235ff1134e404b133917020fa4eac1038947a0.tar.gz
egawk-04235ff1134e404b133917020fa4eac1038947a0.tar.bz2
egawk-04235ff1134e404b133917020fa4eac1038947a0.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'support/regexec.c')
-rw-r--r--support/regexec.c4
1 files changed, 2 insertions, 2 deletions
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;