mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
We should use strlcpy instead of strncpy
This commit is contained in:
parent
0c658debbf
commit
02eb650273
@ -3389,9 +3389,9 @@ found:
|
||||
|
||||
/* Save token to config and clear pass on success */
|
||||
*coro->settings->arrays.cheevos_password = '\0';
|
||||
strncpy(
|
||||
strlcpy(
|
||||
coro->settings->arrays.cheevos_token,
|
||||
cheevos_locals.token, sizeof(cheevos_locals.token)
|
||||
cheevos_locals.token, sizeof(coro->settings->arrays.cheevos_token)
|
||||
);
|
||||
CORO_RET();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user