BeOS port fix: PrintScreen key crashing

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

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.

Thanks, this is in CVS. Please let me know if you find out why it’s
coming up negative.

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment