Common: update stdstr::Replace with the version of replace being used

This commit is contained in:
zilmar 2023-02-27 11:02:25 +10:30
parent db7aab466c
commit 0e5b6cd0e8
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ void stdstr::Replace(const char search, const char replace)
std::string::size_type pos = str.find(search);
while (pos != std::string::npos)
{
str.replace(pos, 1, &replace);
str.replace(pos, 1, &replace, 1);
pos = str.find(search, pos + 1);
}
}