From e0979d17598b8f0812637c0d99c2f030da005fad Mon Sep 17 00:00:00 2001 From: "xiang.zhou" Date: Wed, 6 Sep 2023 19:00:58 +0800 Subject: [PATCH] fixbug:buffer size too small,host:port be truncated --- include/neuron/define.h | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/neuron/define.h b/include/neuron/define.h index 24e4befc..d39c90b1 100644 --- a/include/neuron/define.h +++ b/include/neuron/define.h @@ -45,7 +45,7 @@ extern int default_log_level; extern bool disable_jwt; -extern char host_port[24]; +extern char host_port[32]; typedef enum neu_plugin_kind { NEU_PLUGIN_KIND_STATIC = 0, diff --git a/src/main.c b/src/main.c index 57ec60e4..57fc6fda 100644 --- a/src/main.c +++ b/src/main.c @@ -35,7 +35,7 @@ static neu_manager_t *g_manager = NULL; zlog_category_t * neuron = NULL; bool disable_jwt = false; int default_log_level = ZLOG_LEVEL_NOTICE; -char host_port[24] = { 0 }; +char host_port[32] = { 0 }; int64_t global_timestamp = 0;