summaryrefslogtreecommitdiff
path: root/pbstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbstream.c')
-rw-r--r--pbstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbstream.c b/pbstream.c
index ce14004..4ce8cc3 100644
--- a/pbstream.c
+++ b/pbstream.c
@@ -293,7 +293,7 @@ void pbstream_init_parser(
{
state->offset = 0;
/* We match proto2's limit of 64 for maximum stack depth. */
- state->top = state->base = malloc(sizeof(state->base[64]));
+ state->top = state->base = malloc(64*sizeof(*state->base));
state->limit = state->base + 64;
state->top->fieldset = toplevel_fieldset;
state->top->end_offset = SIZE_MAX;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback