simple-touch: fix off-by-one in position checks
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 31 Jul 2012 10:21:12 +0000 (13:21 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 1 Aug 2012 02:27:23 +0000 (22:27 -0400)
commit07684193931e98d55234e80861325f4e7e587449
tree2057413d606e3f33f2a86f4e9e45699a38d692ef
parent55b7cb24e0acb77e674f886e4557519e7177e359
simple-touch: fix off-by-one in position checks

Fix the off by one error in checking whether we can draw the marker
without exceeding buffer dimensions.

Fixes a segfault.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-touch.c