Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40504
This commit is contained in:
parent
0a5479f0c8
commit
f4d9f8e59f
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ static void report_free(struct report *);
|
||||||
int
|
int
|
||||||
SDL_SYS_JoystickInit(void)
|
SDL_SYS_JoystickInit(void)
|
||||||
{
|
{
|
||||||
char s[10];
|
char s[16];
|
||||||
int i, fd;
|
int i, fd;
|
||||||
|
|
||||||
SDL_numjoysticks = 0;
|
SDL_numjoysticks = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue