chore: hostname can be 253 characters maximum

Signed-off-by: Adrián Arroyo Calle <adrian.arroyocalle@gmail.com>
This commit is contained in:
Adrián Arroyo Calle 2019-11-19 19:42:59 +00:00 committed by Lorenzo Fontana
parent 52fbcefa1d
commit 137e7fc0ec

View File

@ -146,7 +146,7 @@ void falco_outputs::handle_event(gen_event *ev, string &rule, string &source,
std::lock_guard<std::mutex> 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));