mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue