security: Fix a crash caused by wrong ordering of format arguments.

This commit is contained in:
Eamon Walsh 2009-04-16 22:39:54 -04:00
parent 6045506be0
commit 3481b32ab9

View File

@ -948,9 +948,10 @@ SecuritySend(CallbackListPtr *pcbl, pointer unused, pointer calldata)
SecurityAudit("Security: denied client %d from sending event "
"of type %s to window 0x%x of client %d\n",
rec->client->index, rec->pWin->drawable.id,
wClient(rec->pWin)->index,
LookupEventName(rec->events[i].u.u.type));
rec->client->index,
LookupEventName(rec->events[i].u.u.type),
rec->pWin->drawable.id,
wClient(rec->pWin)->index);
rec->status = BadAccess;
return;
}