changeset 503:2ee72e47ca08

Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Oct 2002 05:32:49 +0000
parents 80a3d09bab29
children 8c4a35e3c507
files src/joystick/bsd/SDL_sysjoystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;