diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index c85690d98..fd390f563 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c @@ -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 {