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:
parent
0a8a25e246
commit
e7c010c8a4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user