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

Commit 81a61629 authored by Jiakai Zhang's avatar Jiakai Zhang Committed by Automerger Merge Worker
Browse files

Merge "Enlarge the buffer for otapreopt commands." into main am: d4bdb4b5...

Merge "Enlarge the buffer for otapreopt commands." into main am: d4bdb4b5 am: ba38e518 am: 80c026f6

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2812682



Change-Id: I7a5c1e0a23668aaee03d1b5c2b9bffd267a5a06a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 62b4adbb 80c026f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -353,7 +353,7 @@ static int otapreopt_chroot(const int argc, char **arg) {
    // Now go on and read dexopt lines from stdin and pass them on to otapreopt.

    int count = 1;
    for (std::array<char, 1000> linebuf;
    for (std::array<char, 10000> linebuf;
         std::cin.clear(), std::cin.getline(&linebuf[0], linebuf.size()); ++count) {
        // Subtract one from gcount() since getline() counts the newline.
        std::string line(&linebuf[0], std::cin.gcount() - 1);