fix construction of badge path (#14712)

This commit is contained in:
Jamiras 2022-12-10 00:40:40 -07:00 committed by GitHub
parent fc24410763
commit c2f50a83bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1509,7 +1509,7 @@ static bool rcheevos_client_fetch_badge(
strlcpy(badge_fullpath,
state->badge_directory, sizeof(badge_fullpath));
fill_pathname_slash(badge_fullpath, sizeof(badge_fullpath));
badge_fullname = badge_fullpath + strlen(state->badge_directory);
badge_fullname = badge_fullpath + strlen(badge_fullpath);
badge_fullname_size = sizeof(badge_fullpath) -
(badge_fullname - badge_fullpath);