diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-02-26 02:33:18 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-02-26 02:33:18 -0800 |
commit | eaa0cdd6a162139406b24114aa6c5f27da3b1af0 (patch) | |
tree | 79fd786a17edd3916092c0b7ac83e38ed66c61eb | |
parent | d351981f9e4f9ef5184e35e98ad14df305c91def (diff) |
Oops, malloc(array[int]) didn't do what I thought.
-rw-r--r-- | pbstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |