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

Commit 703c85c6 authored by Carl Shapiro's avatar Carl Shapiro Committed by Android Git Automerger
Browse files

am 0c0f68e8: Fix a long standing bug in the output buffer size computation.

Merge commit '0c0f68e8' into gingerbread-plus-aosp

* commit '0c0f68e8':
  Fix a long standing  bug in the output buffer size computation.
parents 58b64ace 0c0f68e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@ static void showLog(LogState *state,

    numVecs = numLines*3;  // 3 iovecs per line.
    if (numVecs > INLINE_VECS) {
        vec = (struct iovec*)malloc(sizeof(struct iovec)*numLines);
        vec = (struct iovec*)malloc(sizeof(struct iovec)*numVecs);
        if (vec == NULL) {
            msg = "LOG: write failed, no memory";
            numVecs = 3;