mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OSC: fixed an issue sending UTF-8 strings
This commit is contained in:
parent
7f7e903efa
commit
14a24d614f
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ namespace
|
|||
if (! output.writeString (value))
|
||||
return false;
|
||||
|
||||
const size_t numPaddingZeros = ~value.length() & 3;
|
||||
const size_t numPaddingZeros = ~value.getNumBytesAsUTF8() & 3;
|
||||
|
||||
return output.writeRepeatedByte ('\0', numPaddingZeros);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue