summaryrefslogtreecommitdiff
path: root/libs/binder/BufferedTextOutput.cpp
diff options
context:
space:
mode:
author Christopher Ferris <cferris@google.com> 2018-08-31 14:13:51 -0700
committer Christopher Ferris <cferris@google.com> 2018-09-04 14:56:24 -0700
commit12fe72b7579d9857f97c6cbf8b771e0c2c6d7715 (patch)
tree686b2f5088809e6de74fd090e99fd8e36b39068f /libs/binder/BufferedTextOutput.cpp
parenta6aa0e7959f170f6a2e85d895ddf6330905f8e77 (diff)
Update for modified CapturedStderr.
Also fix off by one error exposed by changing the test. Test: Built and ran unit tests. Change-Id: Id983b8301fe33c21bfe1db1e67ef00681f852557
Diffstat (limited to 'libs/binder/BufferedTextOutput.cpp')
-rw-r--r--libs/binder/BufferedTextOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/BufferedTextOutput.cpp b/libs/binder/BufferedTextOutput.cpp
index d516eb1d54..857bbf9510 100644
--- a/libs/binder/BufferedTextOutput.cpp
+++ b/libs/binder/BufferedTextOutput.cpp
@@ -189,7 +189,7 @@ status_t BufferedTextOutput::print(const char* txt, size_t len)
// them out without going through the buffer.
// Slurp up all of the lines.
- const char* lastLine = txt+1;
+ const char* lastLine = txt;
while (txt < end) {
if (*txt++ == '\n') lastLine = txt;
}