Ethereal-dev: Re: [Ethereal-dev] trouble registering ett after mate preferences has changed

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 08 Jan 2005 15:48:35 -0800
LEGO wrote:

What I've done as a workarround is to actually expand the
tree_is_expanded array in proto.c:proto_register_subtree_array()
instead of aborting.

the attached patch does so.

Checked in, with a change to use g_realloc() and zero out the new elements rather than allocating a new array and copying the elements (g_realloc() might, on some platforms, be able to expand the array in place in some cases; that's probably unlikely on some platforms, as the memory after it has probably be allocated for other purposes, but the memory allocator on some platforms might, for example, round allocations up, perhaps to a page boundary or otherwise large boundary).