Merge change 5389 into donut
* changes: Skip spaces and tabs in readProcLines()
This commit is contained in:
@ -496,7 +496,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
|
|||||||
const String8& field = fields[i];
|
const String8& field = fields[i];
|
||||||
if (strncmp(p, field.string(), field.length()) == 0) {
|
if (strncmp(p, field.string(), field.length()) == 0) {
|
||||||
p += field.length();
|
p += field.length();
|
||||||
while (*p == ' ') p++;
|
while (*p == ' ' || *p == '\t') p++;
|
||||||
char* num = p;
|
char* num = p;
|
||||||
while (*p >= '0' && *p <= '9') p++;
|
while (*p >= '0' && *p <= '9') p++;
|
||||||
skipToEol = *p != '\n';
|
skipToEol = *p != '\n';
|
||||||
|
Reference in New Issue
Block a user