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

Commit 28eabf16 authored by Sergio Giro's avatar Sergio Giro Committed by android-build-merger
Browse files

system/core: using equivalent code to fix build break for win host am: 1e612745

am: 78d173ed

Change-Id: I1b07f98c3e817b67567aacb2cd19ec2567f933e8
parents a711a5f6 78d173ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -484,7 +484,9 @@ ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len)
    if (ret_difference >= 5) {
        // Log the difference between new and old calculation. A high number, or equal numbers
        // appearing frequently, would be indicative of an attack.
        std::string logged_string = (std::ostringstream() << ret_difference).str();
        std::ostringstream logged_string_stream;
        logged_string_stream << ret_difference;
        std::string logged_string = logged_string_stream.str();
        android_errorWriteWithInfoLog(0x534e4554, "29250543", -1 /* int_uid */,
            logged_string.c_str(), logged_string.length() + 1);
    }