From 137e7fc0ec0ded20f68b4bc49745eb64da3b9d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Tue, 19 Nov 2019 19:42:59 +0000 Subject: [PATCH] chore: hostname can be 253 characters maximum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrián Arroyo Calle --- userspace/falco/falco_outputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/falco/falco_outputs.cpp b/userspace/falco/falco_outputs.cpp index 4a7bff67..ac19d621 100644 --- a/userspace/falco/falco_outputs.cpp +++ b/userspace/falco/falco_outputs.cpp @@ -146,7 +146,7 @@ void falco_outputs::handle_event(gen_event *ev, string &rule, string &source, std::lock_guard guard(m_ls_semaphore); lua_getglobal(m_ls, m_lua_output_event.c_str()); - char hostname[1024]; + char hostname[256]; char* env_hostname = getenv("FALCO_GRPC_HOSTNAME"); if(env_hostname == NULL){ int err = gethostname(hostname, sizeof(hostname));