Be sure that check_buf() updates the event record pointer after a realloc.
Without this change, if realloc() moved the buffer around (instead of
just lengthening it), the current event record pointer will point to
the old address, not the new. This can happen if an event record is
added, then two event parameter are added (the 2nd causing a
realloc()).
Be sure that check_buf() updates the event record pointer after a realloc.
Without this change, if realloc() moved the buffer around (instead of
just lengthening it), the current event record pointer will point to
the old address, not the new. This can happen if an event record is
added, then two event parameter are added (the 2nd causing a
realloc()).