Skip to content

Commit

Permalink
[FIX] Rework incorrect 8cb0cb3.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Jan 8, 2024
1 parent 4bb4341 commit 9680aa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions architecture/faust/gui/PathBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ class FAUST_API PathBuilder {
std::string src = src_aux;
std::string from = "/0x00";
std::string to = "";
for (size_t pos = src.find(from); pos != std::string::npos; pos = src.find(from, pos + 1)) {
src.replace(pos, from.length(), to);
size_t pos = std::string::npos;
while ((pos = src.find(from)) && (pos != std::string::npos)) {
src = src.replace(pos, from.length(), to);
}
return src;
}
Expand Down

0 comments on commit 9680aa1

Please sign in to comment.