From 12fe72b7579d9857f97c6cbf8b771e0c2c6d7715 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 31 Aug 2018 14:13:51 -0700 Subject: Update for modified CapturedStderr. Also fix off by one error exposed by changing the test. Test: Built and ran unit tests. Change-Id: Id983b8301fe33c21bfe1db1e67ef00681f852557 --- libs/binder/BufferedTextOutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/binder/BufferedTextOutput.cpp') 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; } -- cgit v1.2.3-59-g8ed1b