commit | 1493a3974a725d6873f317b774be333ca035a64c | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Nov 07 11:25:31 2012 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Nov 07 11:25:31 2012 -0800 |
tree | 59b86a2971a0a7f0380271893e149ef5529778fc | |
parent | 20b9749959786a11d91332202009d3903f15e3f0 [diff] |
dumpstate: fix incorrectly zeroed array Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index c85690d..fd390f5 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c
@@ -120,7 +120,7 @@ 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 {