diff options
Diffstat (limited to 'xorg-server/mi')
-rw-r--r-- | xorg-server/mi/mieq.c | 7 | ||||
-rw-r--r-- | xorg-server/mi/miwindow.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/xorg-server/mi/mieq.c b/xorg-server/mi/mieq.c index 9b6d0c901..2d5f23ea6 100644 --- a/xorg-server/mi/mieq.c +++ b/xorg-server/mi/mieq.c @@ -439,10 +439,13 @@ mieqProcessInputEvents(void) evlen = e->events->evlen; if(evlen > event_size) + { + event_size=evlen; event = xrealloc(event, evlen); + if (!event) + FatalError("[mi] No memory left for event processing.\n"); + } - if (!event) - FatalError("[mi] No memory left for event processing.\n"); memcpy(event, e->events->event, evlen); diff --git a/xorg-server/mi/miwindow.c b/xorg-server/mi/miwindow.c index 31c028482..c2333938e 100644 --- a/xorg-server/mi/miwindow.c +++ b/xorg-server/mi/miwindow.c @@ -1,3 +1,4 @@ + /*********************************************************** Copyright 1987, 1998 The Open Group |