comparison src/joystick/bsd/SDL_sysjoystick.c @ 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 1d36f593078a
children 2d7373ffd131
comparison
equal deleted inserted replaced
502:80a3d09bab29 503:2ee72e47ca08
125 #endif 125 #endif
126 126
127 int 127 int
128 SDL_SYS_JoystickInit(void) 128 SDL_SYS_JoystickInit(void)
129 { 129 {
130 char s[10]; 130 char s[16];
131 int i, fd; 131 int i, fd;
132 132
133 SDL_numjoysticks = 0; 133 SDL_numjoysticks = 0;
134 134
135 memset(joynames, NULL, sizeof(joynames)); 135 memset(joynames, NULL, sizeof(joynames));