dix: set evlen to the size of the reallocated memory.
What a good idea this is... I'm very proud of myself.
This commit is contained in:
parent
750d702676
commit
f14a62f823
|
@ -613,6 +613,7 @@ SetMinimumEventSize(EventListPtr list, int num_events, int min_size)
|
|||
{
|
||||
if (list[num_events].evlen < min_size)
|
||||
{
|
||||
list[num_events].evlen = min_size;
|
||||
list[num_events].event = realloc(list[num_events].event, min_size);
|
||||
if (!list[num_events].event)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue