summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c
index 7a4ae34..a82eb96 100644
--- a/generic/regcomp.c
+++ b/generic/regcomp.c
@@ -421,7 +421,7 @@ int wanted; /* want enough room for this one */
memcpy(VS(p), VS(v->subs),
v->nsubs * sizeof(struct subre *));
} else
- p = REALLOC(v->subs, n * sizeof(struct subre *));
+ p = (struct subre**)REALLOC(v->subs, n*sizeof(struct subre *));
if (p == NULL) {
ERR(REG_ESPACE);
return;