1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Bug 2572 - Multi-byte characters may corrupt Json from mod-script-pipe

This commit is contained in:
SteveDaulton 2020-10-26 01:15:06 +00:00
parent 0a8a25e246
commit e7c010c8a4

View File

@ -163,7 +163,7 @@ int DoSrvMore(char *pOut, size_t nMax)
while (currentLine < totalLines)
{
wxString lineString = aStr[currentLine];
size_t lineLength = lineString.Length();
size_t lineLength = lineString.mb_str().length();
size_t charsLeftInLine = lineLength - currentPosition;
wxASSERT(charsLeftInLine >= 0);