mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Fix for strings in UTF32 mode.
This commit is contained in:
parent
7f7cbe73fd
commit
d95fda2e90
1 changed files with 2 additions and 2 deletions
|
|
@ -137,9 +137,9 @@ public:
|
|||
return getEmpty();
|
||||
|
||||
const size_t numBytes = (size_t) (end.getAddress() - start.getAddress());
|
||||
const CharPointerType dest (createUninitialisedBytes (numBytes + 1));
|
||||
const CharPointerType dest (createUninitialisedBytes (numBytes + sizeof (CharType)));
|
||||
memcpy (dest.getAddress(), start, numBytes);
|
||||
dest.getAddress()[numBytes] = 0;
|
||||
dest.getAddress()[numBytes / sizeof (CharType)] = 0;
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue