aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/smtp_received.rl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ragel/smtp_received.rl')
-rw-r--r--src/ragel/smtp_received.rl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ragel/smtp_received.rl b/src/ragel/smtp_received.rl
index f4a0ed7ba..dd2212de3 100644
--- a/src/ragel/smtp_received.rl
+++ b/src/ragel/smtp_received.rl
@@ -51,7 +51,8 @@
prepush {
if (top >= st_storage.size) {
- st_storage.data = realloc (st_storage.data, (top + 1) * 2);
+ st_storage.size = (top + 1) * 2;
+ st_storage.data = realloc (st_storage.data, st_storage.size * sizeof (int));
g_assert (st_storage.data != NULL);
stack = st_storage.data;
}