diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-04-09 18:23:25 -0700 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-04-09 18:23:25 -0700 |
commit | 2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd (patch) | |
tree | 966d71f3e62cc79b841602c44ae1c92720268dca /liblog/fake_log_device.c | |
parent | a68049a8cc3f1eacda1e27b2040af73f6faa42ab (diff) | |
download | system_core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.zip system_core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.tar.gz system_core-2a7f2ae7d4b25f89e36be04e47b9e7a3d76e0cfd.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c index ed9d699..f8b7254 100644 --- a/liblog/fake_log_device.c +++ b/liblog/fake_log_device.c @@ -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; |