mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Remove unnecessary null termination
UTF16Cache::copyToBuffer() is already adding a null terminator
This commit is contained in:
parent
e3bbc42925
commit
7613fa0375
1 changed files with 0 additions and 1 deletions
|
|
@ -159,7 +159,6 @@ U32 convertUTF8toUTF16N(const UTF8 *unistring, UTF16 *outbuffer, U32 len)
|
||||||
{
|
{
|
||||||
const UTF16Cache &cache = (*cacheItr).value;
|
const UTF16Cache &cache = (*cacheItr).value;
|
||||||
cache.copyToBuffer(outbuffer, len);
|
cache.copyToBuffer(outbuffer, len);
|
||||||
outbuffer[len-1] = '\0';
|
|
||||||
return getMin(cache.mLength,len - 1);
|
return getMin(cache.mLength,len - 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue