crosshair.c: Be paranoid about overflow when finding an pad-center coordinates
commit0c849e2bdbbc592a3bf5c1d28571b82efec42a17
authorPeter Clifton <pcjc2@cam.ac.uk>
Fri, 16 Dec 2011 00:56:10 +0000 (16 00:56 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Fri, 16 Dec 2011 00:56:36 +0000 (16 00:56 +0000)
tree9d17c379b22b3b6523616176b01b8e075ff1c6b9
parentd7dc68fddf0324f5601b2c54fa82df20ae4fa81a
crosshair.c: Be paranoid about overflow when finding an pad-center coordinates

Not aiming to fix any particular bug here, but I noticed the potential
overflow here and thought I'd fix it. Longer term, we perhaps ought to write
some convenience functions for performing operations like this correctly.
src/crosshair.c