We should use strlcpy instead of strncpy

This commit is contained in:
twinaphex 2018-08-13 03:07:12 -07:00
parent 0c658debbf
commit 02eb650273

View File

@ -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();
}