Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 206c2b80 authored by Sergio Giro's avatar Sergio Giro Committed by Android (Google) Code Review
Browse files

Merge "Unicode: specify destination length in utf8_to_utf16 methods"

parents c1ba5c46 f4607438
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -799,7 +799,7 @@ status_t Parcel::writeUtf8AsUtf16(const std::string& str) {
        return NO_MEMORY;
    }

    utf8_to_utf16(strData, strLen, (char16_t*)dst);
    utf8_to_utf16(strData, strLen, (char16_t*)dst, (size_t) utf16Len + 1);

    return NO_ERROR;
}