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