diff options
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/selectev.c')
-rw-r--r-- | nx-X11/programs/Xserver/Xi/selectev.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/Xi/selectev.c b/nx-X11/programs/Xserver/Xi/selectev.c index c8a55f5b0..a9b731864 100644 --- a/nx-X11/programs/Xserver/Xi/selectev.c +++ b/nx-X11/programs/Xserver/Xi/selectev.c @@ -88,20 +88,16 @@ SProcXSelectExtensionEvent (client) register ClientPtr client; { register char n; - register long *p; - register int i; REQUEST(xSelectExtensionEventReq); swaps(&stuff->length, n); REQUEST_AT_LEAST_SIZE(xSelectExtensionEventReq); swapl(&stuff->window, n); swaps(&stuff->count, n); - p = (long *) &stuff[1]; - for (i=0; i<stuff->count; i++) - { - swapl(p, n); - p++; - } + REQUEST_FIXED_SIZE(xSelectExtensionEventReq, + stuff->count * sizeof(CARD32)); + SwapLongs((CARD32 *) (&stuff[1]), stuff->count); + return(ProcXSelectExtensionEvent(client)); } |