Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1493a397 authored by Colin Cross's avatar Colin Cross
Browse files

dumpstate: fix incorrectly zeroed array

Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
parent 20b97499
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {