diff --git a/src/common/string_conversion.cc b/src/common/string_conversion.cc index 9b06e86b..9c0d623f 100644 --- a/src/common/string_conversion.cc +++ b/src/common/string_conversion.cc @@ -120,7 +120,7 @@ static inline uint16_t Swap(uint16_t value) { string UTF16ToUTF8(const vector &in, bool swap) { const UTF16 *source_ptr = &in[0]; - scoped_ptr source_buffer; + scoped_array source_buffer; // If we're to swap, we need to make a local copy and swap each byte pair if (swap) {