Skip to content

Commit

Permalink
Fixed double use of i in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ERSUCC committed Oct 31, 2024
1 parent e11949a commit daa63b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ std::string convertCharPointerToStdString(const wchar_t* text)
int bytes = wctomb(dest, text[i]);
// protect against buffer overflow from conversion errors,
// or if the buffer is full and therefore not null-terminated
for (int i = 0; i < bytes; i++) {
result += dest[i];
for (int j = 0; j < bytes; j++) {
result += dest[j];
}
}
return result;
Expand Down

0 comments on commit daa63b5

Please sign in to comment.