summaryrefslogtreecommitdiff
path: root/ext/ovrimos/ovrimos.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ovrimos/ovrimos.c')
-rw-r--r--ext/ovrimos/ovrimos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ovrimos/ovrimos.c b/ext/ovrimos/ovrimos.c
index 0dd35ecd12..e18bd38e1f 100644
--- a/ext/ovrimos/ovrimos.c
+++ b/ext/ovrimos/ovrimos.c
@@ -212,7 +212,7 @@ PCON_STATE state = statement->con_state;
return 1;
}
- new_statements = emalloc( (state->nstatements-1) * sizeof(STATEMENT));
+ new_statements = safe_emalloc( (state->nstatements-1), sizeof(STATEMENT), 0);
for (i=j=0;i<state->nstatements;i++) {
if (state->statements->statement != stmt) {