| Index: third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| index 0e3f01783bd218e579cba7068674a120d8cbe811..3927890cec9aa506caf8c0d6a447acacca88c363 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| @@ -163,7 +163,7 @@ CString TextCodecUTF16::encode(const UChar* characters,
|
| ASSERT(length <= numeric_limits<size_t>::max() / 2);
|
|
|
| char* bytes;
|
| - CString result = CString::newUninitialized(length * 2, bytes);
|
| + CString result = CString::createUninitialized(length * 2, bytes);
|
|
|
| // FIXME: CString is not a reasonable data structure for encoded UTF-16, which
|
| // will have null characters inside it. Perhaps the result of encode should
|
| @@ -192,7 +192,7 @@ CString TextCodecUTF16::encode(const LChar* characters,
|
| RELEASE_ASSERT(length <= numeric_limits<size_t>::max() / 2);
|
|
|
| char* bytes;
|
| - CString result = CString::newUninitialized(length * 2, bytes);
|
| + CString result = CString::createUninitialized(length * 2, bytes);
|
|
|
| if (m_littleEndian) {
|
| for (size_t i = 0; i < length; ++i) {
|
|
|