mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-17 09:23:16 -03:00
Prior to this change, it was possible to cause an infinite loop by making the string to be replaced and the replacing string the same thing. e.g. std::string some_str = "test"; ReplaceAll(some_str, "test", "test"); This also changes the replacing in a way that doesn't require starting from the beginning of the string on each replacement iteration.
9.4 KiB
9.4 KiB