Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)

This commit is contained in:
Sam Lantinga 2002-10-05 05:32:49 +00:00
parent f4fc520def
commit 3f55216a5b

View File

@ -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;