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

Commit e29926e9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "trace: resolve stack corruption due to string copy"

parents 484dcbc8 2690da0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1551,7 +1551,7 @@ static void __trace_find_cmdline(int pid, char comm[])

	map = savedcmd->map_pid_to_cmdline[pid];
	if (map != NO_CMDLINE_MAP)
		strcpy(comm, get_saved_cmdlines(map));
		strlcpy(comm, get_saved_cmdlines(map), TASK_COMM_LEN - 1);
	else
		strcpy(comm, "<...>");
}