We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80371aa + d3fe5c0 commit 880b98bCopy full SHA for 880b98b
src/core_dump_handler/dlt_cdh_context.c
@@ -55,7 +55,7 @@ cdh_status_t get_exec_name(unsigned int p_pid, char *p_exec_name, int p_exec_nam
55
memset(l_exe_link, 0, sizeof(l_exe_link));
56
snprintf(l_exe_link, sizeof(l_exe_link) - 1, "/proc/%d/exe", p_pid);
57
58
- if (readlink(l_exe_link, g_buffer, p_exec_name_maxsize) < 0)
+ if (readlink(l_exe_link, g_buffer, sizeof(g_buffer) - 1) < 0)
59
return CDH_NOK;
60
61
if ((l_name_ptr = strrchr(g_buffer, '/')) == NULL)
0 commit comments