commit | bb82a5a53c437a778ae4a090f7bca7f76f86bc0c | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu Mar 16 00:51:29 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Mar 16 00:51:34 2017 +0000 |
tree | 27a4dbc6d0da07cd312a2e2f1e723db33ec2977a | |
parent | 994754fa2a3667962bedfd379ff13add9a32d574 [diff] | |
parent | f520b73103a327ccf3df581eb1662ae278649b35 [diff] |
Merge "Get rid of LinearTransform"
diff --git a/logcat/tests/logcat_test.cpp b/logcat/tests/logcat_test.cpp index dad74ee..0895834 100644 --- a/logcat/tests/logcat_test.cpp +++ b/logcat/tests/logcat_test.cpp
@@ -208,9 +208,9 @@ if ((*ep != '-') && (*ep != '.')) { continue; } - // Find PID field + // Find PID field. Look for ': ' or ':[0-9][0-9][0-9]' while (((ep = strchr(ep, ':'))) && (*++ep != ' ')) { - ; + if (isdigit(ep[0]) && isdigit(ep[1]) && isdigit(ep[2])) break; } if (!ep) { continue;