|
From: Elias N. <eli...@us...> - 2003-02-20 15:13:43
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv17541/win32 Modified Files: org_lwjgl_input_Keyboard.cpp Log Message: Fixed a buffer overflow problem in dåz Index: org_lwjgl_input_Keyboard.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- org_lwjgl_input_Keyboard.cpp 13 Feb 2003 15:32:15 -0000 1.11 +++ org_lwjgl_input_Keyboard.cpp 20 Feb 2003 15:13:37 -0000 1.12 @@ -47,7 +47,7 @@ #include "org_lwjgl_input_Keyboard.h" #define KEYBOARD_BUFFER_SIZE 50 -BYTE readBuffer[KEYBOARD_BUFFER_SIZE]; +BYTE readBuffer[KEYBOARD_BUFFER_SIZE*4]; LPDIRECTINPUTDEVICE lpdiKeyboard = NULL; jfieldID fid_readBuffer; bool translationEnabled; |