dumpstate: fix incorrectly zeroed array

Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
This commit is contained in:
Colin Cross 2012-11-07 11:25:31 -08:00
parent 20b9749959
commit 1493a3974a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {