From 01fe5d78b65c41c87a09abf335ed52c506f3881e Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Fri, 5 Apr 2024 13:14:25 +0000 Subject: [PATCH] fix(userspace/libsinsp): solve formatts being cropped with fd.types Signed-off-by: Jason Dellaluce --- userspace/libsinsp/sinsp_filtercheck_fd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/sinsp_filtercheck_fd.cpp b/userspace/libsinsp/sinsp_filtercheck_fd.cpp index c9eaa6dc4f..eff81c6157 100644 --- a/userspace/libsinsp/sinsp_filtercheck_fd.cpp +++ b/userspace/libsinsp/sinsp_filtercheck_fd.cpp @@ -149,7 +149,7 @@ int32_t sinsp_filter_check_fd::parse_field_name(const char* str, bool alloc_stat if(res == 0) { m_argid = -1; - res = (int32_t)val.size(); + res = (int32_t)(sizeof("fd.types") - 1); } return res;