Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-minivmac
Commits
17fc776b
Commit
17fc776b
authored
Jan 25, 2022
by
Vladimir Serbinenko
Browse files
Fix potential buffer overflow
parent
e118c7fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libretro/libretro-core.c
View file @
17fc776b
...
@@ -616,9 +616,10 @@ bool retro_load_game(const struct retro_game_info *info)
...
@@ -616,9 +616,10 @@ bool retro_load_game(const struct retro_game_info *info)
struct retro_keyboard_callback cb = { keyboard_cb };
struct retro_keyboard_callback cb = { keyboard_cb };
environ_cb(RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK, &cb);
environ_cb(RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK, &cb);
*/
*/
const
char
*
full_path
=
info
->
path
;
memset
(
RPATH
,
0
,
sizeof
(
info
->
path
))
;
strcpy
(
RPATH
,
full_path
);
if
(
info
&&
info
->
path
)
strncpy
(
RPATH
,
info
->
path
,
sizeof
(
RPATH
)
-
1
);
update_variables
();
update_variables
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment