summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Shapiro2010-04-09 20:23:25 -0500
committerCarl Shapiro2010-04-09 20:23:25 -0500
commit2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd (patch)
tree966d71f3e62cc79b841602c44ae1c92720268dca /liblog/fake_log_device.c
parenta68049a8cc3f1eacda1e27b2040af73f6faa42ab (diff)
downloadplatform-system-core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.tar.gz
platform-system-core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.tar.xz
platform-system-core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.zip
Fix a long standing bug in the output buffer size computation.
Change-Id: I55aca04fdd3822ac06db183bf2ff0cbd61f778e8
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index ed9d699ac..f8b725412 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -454,7 +454,7 @@ static void showLog(LogState *state,
454 454
455 numVecs = numLines*3; // 3 iovecs per line. 455 numVecs = numLines*3; // 3 iovecs per line.
456 if (numVecs > INLINE_VECS) { 456 if (numVecs > INLINE_VECS) {
457 vec = (struct iovec*)malloc(sizeof(struct iovec)*numLines); 457 vec = (struct iovec*)malloc(sizeof(struct iovec)*numVecs);
458 if (vec == NULL) { 458 if (vec == NULL) {
459 msg = "LOG: write failed, no memory"; 459 msg = "LOG: write failed, no memory";
460 numVecs = 3; 460 numVecs = 3;