1
0
Fork 0
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:
Tom Poole 2019-07-23 14:31:13 +01:00
parent 7f7e903efa
commit 14a24d614f

View file

@ -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);
}