diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-05-29 22:29:09 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-05-29 22:29:09 +0000 |
commit | d0888eb389c119e0a98147d0bd249b5aa8073358 (patch) | |
tree | 6d92fd0b3054b2ebd98a6c1deb27a1e814b08451 /epan/proto.c | |
parent | d19f63e8f840aebd1b4b9cf579d14c2ca6685db5 (diff) | |
download | wireshark-d0888eb389c119e0a98147d0bd249b5aa8073358.tar.gz |
Increase the base size to 100 000 we are using more than that.
svn path=/trunk/; revision=33020
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 0d902b51bf..94246605f1 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -4496,8 +4496,8 @@ proto_register_field_init(header_field_info *hfinfo, const int parent) /* if we always add and never delete, then id == len - 1 is correct */ if(gpa_hfinfo.len>=gpa_hfinfo.allocated_len){ if(!gpa_hfinfo.hfi){ - gpa_hfinfo.allocated_len=1000; - gpa_hfinfo.hfi=g_malloc(sizeof(header_field_info *)*1000); + gpa_hfinfo.allocated_len=100000; + gpa_hfinfo.hfi=g_malloc(sizeof(header_field_info *)*100000); } else { gpa_hfinfo.allocated_len+=1000; gpa_hfinfo.hfi=g_realloc(gpa_hfinfo.hfi, sizeof(header_field_info *)*gpa_hfinfo.allocated_len); |