From 37e31d2001c4dc009b5ff5e11fc74f493fcc45da Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Wed, 20 Dec 2023 12:46:32 +0000 Subject: [PATCH] fix(userspace/libsinsp): fix resolved PT_FSPATH and PT_FSRELPATH evt args Signed-off-by: Jason Dellaluce --- userspace/libsinsp/event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/event.cpp b/userspace/libsinsp/event.cpp index 8063317cdb..74a31b5573 100644 --- a/userspace/libsinsp/event.cpp +++ b/userspace/libsinsp/event.cpp @@ -1047,7 +1047,7 @@ const char* sinsp_evt::get_param_as_str(uint32_t id, OUT const char** resolved_s else { std::string concatenated_path = sinsp_utils::concatenate_paths(cwd, path); - strcpy_sanitized(&m_paramstr_storage[0], concatenated_path.data(), std::min(concatenated_path.size() + 1, m_paramstr_storage.size())); + strcpy_sanitized(&m_resolved_paramstr_storage[0], concatenated_path.data(), std::min(concatenated_path.size() + 1, m_resolved_paramstr_storage.size())); } } }