[SDL] BeOS port fix: PrintScreen key crashing

François Revol revol at free.fr
Wed Mar 29 07:26:55 PST 2006


It seems the latest SDL crashes when someone hits the PrtScrn key in 
ZETA (BeOS R6), somewhere it gets a negative value as key code (or a 
big unsigned maybe ?), and uses it as an index in the keysym table...
I'll investigate the cause for the negative value, but it's always 
better to check for bounds correctly when indexing a table. The 
attached diff fixes it.

François Revol
--
Software Architect
yellowTAB GmbH
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060329/f379a52d/attachment.asc>


More information about the SDL mailing list