Permalink
Browse files

am 0c0f68e: Fix a long standing bug in the output buffer size computa…

…tion.

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

* commit '0c0f68e8ff9fb88eaae614d1da316f0037484886':
  Fix a long standing  bug in the output buffer size computation.
  • Loading branch information...
Carl Shapiro Android Git Automerger
Carl Shapiro authored and Android Git Automerger committed Aug 18, 2010
2 parents 58b64ac + 0c0f68e commit 703c85c69d3822067623a6dd7bfde4b734c7f84f
Showing with 1 addition and 1 deletion.
  1. +1 −1 liblog/fake_log_device.c
View
@@ -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;

0 comments on commit 703c85c

Please sign in to comment.