diff --git a/userspace/sinspui/cursesui.cpp b/userspace/sinspui/cursesui.cpp index 1afe7eb07e..30bf4b73bb 100644 --- a/userspace/sinspui/cursesui.cpp +++ b/userspace/sinspui/cursesui.cpp @@ -18,6 +18,7 @@ limitations under the License. */ #include +#include #include "sinsp.h" #include "sinsp_int.h" #include "filter.h" @@ -944,8 +945,8 @@ void sinsp_cursesui::draw_bottom_menu(vector* items, bool i attrset(m_colors[PROCESS]); string fks = items->at(j).m_key; - mvaddnstr(m_screenh - 1, k, fks.c_str(), MAX(fks.size(), 2)); - k += MAX(fks.size(), 2); + mvaddnstr(m_screenh - 1, k, fks.c_str(), std::max(fks.size(), 2)); + k += std::max(fks.size(), 2); attrset(m_colors[PANEL_HIGHLIGHT_FOCUS]); fks = items->at(j).m_desc;