Skip to content

Commit

Permalink
Best-practice-clear the password string.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 16, 2023
1 parent 6bb97b3 commit 3fe0b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UI/RetroAchievementScreens.cpp
Expand Up @@ -246,6 +246,7 @@ void RetroAchievementsSettingsScreen::CreateAccountTab(UI::ViewGroup *viewGroup)
loginButton->OnClick.Add([=](UI::EventParams &) -> UI::EventReturn {
if (!username_.empty() && !password_.empty()) {
Achievements::LoginAsync(username_.c_str(), password_.c_str());
memset(&password_[0], 0, password_.size());
password_.clear();
}
return UI::EVENT_DONE;
Expand Down

0 comments on commit 3fe0b5a

Please sign in to comment.