dumpstate: fix incorrectly zeroed array
Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
This commit is contained in:
parent
20b9749959
commit
1493a3974a
@ -120,7 +120,7 @@ static void for_each_tid_helper(int pid, const char *cmdline, void *arg) {
|
||||
continue;
|
||||
|
||||
sprintf(commpath,"/proc/%d/comm", tid);
|
||||
memset(comm, 0, sizeof(cmdline));
|
||||
memset(comm, 0, sizeof(comm));
|
||||
if ((fd = open(commpath, O_RDONLY)) < 0) {
|
||||
strcpy(comm, "N/A");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user