aboutsummaryrefslogtreecommitdiffstats
path: root/support/regexec.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-12-22 14:28:16 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-12-22 14:28:16 +0200
commit31964a0f57a269734730a6bc597d4733e1518eb8 (patch)
tree8f4aa2156654c05f0fdb819e726bb18286c67c50 /support/regexec.c
parentb38e210c1b96e7e38bf2e479759f697ccaa006b5 (diff)
parent04235ff1134e404b133917020fa4eac1038947a0 (diff)
downloadegawk-31964a0f57a269734730a6bc597d4733e1518eb8.tar.gz
egawk-31964a0f57a269734730a6bc597d4733e1518eb8.tar.bz2
egawk-31964a0f57a269734730a6bc597d4733e1518eb8.zip
Merge branch 'master' into feature/fix-comments
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;