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:
Peter Hutterer 2008-02-19 21:44:10 +10:30
parent 750d702676
commit f14a62f823

View File

@ -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)
{