# HG changeset patch # User Sam Lantinga # Date 1141269501 0 # Node ID bf8db2d92be118024aafdf8bd83493fa036a2748 # Parent 337665b695d1b4a6150336c691dcd0c42fd9d2de Date: Wed, 1 Mar 2006 23:52:09 +0100 From: Sam Hocevar Subject: [SDL] [patch] aalib driver Hi there. The attached patch fixes a buffer overflow in the aalib driver and also adds a workaround for a conflict between arrow keys and the numeric keypad that have the same scancode on aalib. The patch gives precedence to the arrow keys. diff -r 337665b695d1 -r bf8db2d92be1 src/video/aalib/SDL_aaevents.c --- a/src/video/aalib/SDL_aaevents.c Wed Mar 01 09:56:51 2006 +0000 +++ b/src/video/aalib/SDL_aaevents.c Thu Mar 02 03:18:21 2006 +0000 @@ -126,12 +126,6 @@ for ( i=0; i= SDL_arraysize(keymap) ) + scancode = AA_UNKNOWN; + /* Set the keysym information */ keysym->scancode = scancode; keysym->sym = keymap[scancode];