input: Fix possible crash in clip_pointer_motion
authorAlexander Larsson <alexl@redhat.com>
Tue, 28 May 2013 14:23:33 +0000 (16:23 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 28 May 2013 20:14:34 +0000 (16:14 -0400)
commitbcd18d9b0942ade60a5980970a1717e4b6e9c28f
treede884e376293f88a43bc9ca9b6eb6a843b8aed05
parent6a4e8c62e79678e11b3b946247ae777a70f948dd
input: Fix possible crash in clip_pointer_motion

It was erronously using output->current->height in one
place where it should use output->height. This may cause
it to create an invalid clipped coordinate in case of output
scaling or transform, because the next round "prev" would
end up NULL.
src/input.c