Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf946df3 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 35a47a6e: Merge change 5389 into donut

Merge commit '35a47a6e'

* commit '35a47a6e':
  Skip spaces and tabs in readProcLines()
parents 1af846b9 35a47a6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -496,7 +496,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
                const String8& field = fields[i];
                if (strncmp(p, field.string(), field.length()) == 0) {
                    p += field.length();
                    while (*p == ' ') p++;
                    while (*p == ' ' || *p == '\t') p++;
                    char* num = p;
                    while (*p >= '0' && *p <= '9') p++;
                    skipToEol = *p != '\n';