Browse Source

Remove unnecessary null termination

UTF16Cache::copyToBuffer() is already adding a null terminator
Ben Payne 10 năm trước cách đây
mục cha
commit
7613fa0375
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      Engine/source/core/strings/unicode.cpp

+ 0 - 1
Engine/source/core/strings/unicode.cpp

@@ -159,7 +159,6 @@ U32 convertUTF8toUTF16N(const UTF8 *unistring, UTF16 *outbuffer, U32 len)
    {
       const UTF16Cache &cache = (*cacheItr).value;
       cache.copyToBuffer(outbuffer, len);
-      outbuffer[len-1] = '\0';
       return getMin(cache.mLength,len - 1);
    }
 #endif