Typo correction, 'i' is not a '1', so no longer crash on some Xi requests.

This commit is contained in:
Zephaniah E. Hull 2006-09-10 15:49:25 -04:00
parent 8d709f0280
commit 0a3740a000

View File

@ -178,7 +178,7 @@ ProcXSelectExtensionEvent(register ClientPtr client)
return Success; return Success;
} }
if (HandleDevicePresenceMask(client, pWin, (XEventClass *) & stuff[i], if (HandleDevicePresenceMask(client, pWin, (XEventClass *) & stuff[1],
&stuff->count) != Success) { &stuff->count) != Success) {
SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 0, SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 0,
BadAlloc); BadAlloc);