Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
authorSam Lantinga <slouken@libsdl.org>
Sat, 05 Oct 2002 05:32:49 +0000
changeset 5032ee72e47ca08
parent 502 80a3d09bab29
child 504 8c4a35e3c507
Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
src/joystick/bsd/SDL_sysjoystick.c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Sat Oct 05 05:11:20 2002 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Sat Oct 05 05:32:49 2002 +0000
     1.3 @@ -127,7 +127,7 @@
     1.4  int
     1.5  SDL_SYS_JoystickInit(void)
     1.6  {
     1.7 -	char s[10];
     1.8 +	char s[16];
     1.9  	int i, fd;
    1.10  
    1.11  	SDL_numjoysticks = 0;