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

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

* commit '0c0f68e8ff9fb88eaae614d1da316f0037484886':
  Fix a long standing  bug in the output buffer size computation.
This commit is contained in:
Carl Shapiro 2010-08-18 13:38:04 -07:00 committed by Android Git Automerger
commit 703c85c69d
1 changed files with 1 additions and 1 deletions

View File

@ -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;