logd: pidToUid incorrect

Change-Id: I9b0e655780924db125568179771e57b01e80aaae
This commit is contained in:
Mark Salyzyn 2015-04-14 13:07:29 -07:00
parent e83d8a6900
commit c32afdf913
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ uid_t pidToUid(pid_t pid) {
if (fp) {
while (fgets(buffer, sizeof(buffer), fp)) {
int uid;
if (sscanf(buffer, "Groups: %d", &uid) == 1) {
if (sscanf(buffer, "Uid: %d", &uid) == 1) {
fclose(fp);
return uid;
}