From 775492ca326c6fa6a4c387bbd0d7179ecf706267 Mon Sep 17 00:00:00 2001 From: zhanglianghy Date: Fri, 30 Aug 2019 10:57:10 +0800 Subject: [PATCH] =?UTF-8?q?MOD=20aaa-12=20=E8=A7=A3=E5=86=B3=E5=86=99inter?= =?UTF-8?q?face=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=B6=8A=E7=95=8C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20SOL=20=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=86=99interface=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=B6=8A?= =?UTF-8?q?=E7=95=8C=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=BA=EF=BC=9Azhangliang=20=E6=A3=80=E8=A7=86=E4=BA=BA?= =?UTF-8?q?=EF=BC=9Azhangliang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Platform/user/configm/config-server/netconfig/parsefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/user/configm/config-server/netconfig/parsefile.c b/Platform/user/configm/config-server/netconfig/parsefile.c index 211736b92..a5b2e856b 100644 --- a/Platform/user/configm/config-server/netconfig/parsefile.c +++ b/Platform/user/configm/config-server/netconfig/parsefile.c @@ -410,7 +410,7 @@ int conf_value_in_block_set_add(char *conf_path, char *conf_name, char *conf_buff) { char config_linebuf[IF_BUFF_LEN]; - int configbuf_lenth = strlen(conf_buff) + 5; + int configbuf_lenth = 0; long config_lenth = 0; boolean next_flag = FALSE; char *start_line = NULL; @@ -427,7 +427,7 @@ int conf_value_in_block_set_add(char *conf_path, fseek(f, 0, SEEK_END); config_lenth = ftell(f); - + configbuf_lenth = strlen(start_str) + strlen(conf_buff) + 5; char sum_buf[config_lenth + configbuf_lenth]; memset(sum_buf, 0, sizeof(sum_buf));