From 8d204f9d7e166dcd7e80287f66129e8e8c802d9e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 5 Oct 2002 05:32:49 +0000 Subject: [PATCH] Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!) --- src/joystick/bsd/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/bsd/SDL_sysjoystick.c b/src/joystick/bsd/SDL_sysjoystick.c index 3e2ab2db7..b80709ad2 100644 --- a/src/joystick/bsd/SDL_sysjoystick.c +++ b/src/joystick/bsd/SDL_sysjoystick.c @@ -127,7 +127,7 @@ static void report_free(struct report *); int SDL_SYS_JoystickInit(void) { - char s[10]; + char s[16]; int i, fd; SDL_numjoysticks = 0;