commit | a48aa64e046ad5dc57b69befcf6fcda9679e05ec | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Wed May 02 02:57:41 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 02 02:57:41 2018 +0000 |
tree | f13e2c4b78205ab192c6347bc52f3d39aecc8a08 | |
parent | 52aab72f337d48cde8118d5cf18a73210d7789ec [diff] | |
parent | 5258c2518e582585e1b00097296053b334790d13 [diff] |
Merge "Fix async_safe_fatal overflow handling"
diff --git a/libc/async_safe/async_safe_log.cpp b/libc/async_safe/async_safe_log.cpp index d5aad16..1018ef5 100644 --- a/libc/async_safe/async_safe_log.cpp +++ b/libc/async_safe/async_safe_log.cpp
@@ -537,7 +537,7 @@ // Log to stderr for the benefit of "adb shell" users and gtests. struct iovec iov[2] = { - {msg, os.total}, {const_cast<char*>("\n"), 1}, + {msg, strlen(msg)}, {const_cast<char*>("\n"), 1}, }; TEMP_FAILURE_RETRY(writev(2, iov, 2));