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

Commit b9ce0f10 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "toolbox ps: replace strcpy with snprintf."

parents 7bdd6a8b defd249d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ static int ps_line(int pid, int tid)
    if (pw == 0 || (display_flags & SHOW_NUMERIC_UID)) {
        snprintf(user, sizeof(user), "%d", (int)stats.st_uid);
    } else {
        strcpy(user, pw->pw_name);
        snprintf(user, sizeof(user), "%s", pw->pw_name);
    }

    if (ppid_filter != 0 && ppid != ppid_filter) {