Skip to content

Commit

Permalink
Don't use change_extension deprecated in some boost versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed May 23, 2024
1 parent d46c0c6 commit 60bff96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleWallet/SimpleWallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ bool simple_wallet::new_wallet(const std::string &wallet_file, const std::string
{
CryptoNote::WalletHelper::storeWallet(*m_wallet, m_wallet_file);
//create wallet backup file
boost::filesystem::copy_file(m_wallet_file, boost::filesystem::change_extension(m_wallet_file, ".walletbak"));
boost::filesystem::copy_file(m_wallet_file, m_wallet_file.substr(0, m_wallet_file.find_last_of('.')) + ".walletbak");
}
catch (std::exception& e)
{
Expand Down

0 comments on commit 60bff96

Please sign in to comment.