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

Commit e1d310d7 authored by Sergio Giro's avatar Sergio Giro Committed by Martijn Coenen
Browse files

Unicode: specify destination length in utf8_to_utf16 methods

Change-Id: I5223caa7d42f4582a982609a898a02043265c6d3
parent d1b0747e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -799,7 +799,7 @@ status_t Parcel::writeUtf8AsUtf16(const std::string& str) {
        return NO_MEMORY;
        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;
    return NO_ERROR;
}
}