Use only safe string functions
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401383
This commit is contained in:
parent
a81db3ea34
commit
1da8cb0143
60 changed files with 223 additions and 263 deletions
|
@ -165,7 +165,7 @@ int SDL_SYS_JoystickOpen(SDL_Joystick *joystick)
|
|||
return(-1);
|
||||
}
|
||||
SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata));
|
||||
SDL_strcpy(joystick->hwdata->name, SDL_SYS_JoystickName(index));
|
||||
SDL_strlcpy(joystick->hwdata->name, SDL_SYS_JoystickName(index), SDL_arraysize(joystick->hwdata->name));
|
||||
joystick->name = joystick->hwdata->name;
|
||||
|
||||
ISpElementList_ExtractByKind(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue