diff --git a/Platform/common/rpc/rpc_common.h b/Platform/common/rpc/rpc_common.h index eff27ba7d..59e1dd365 100755 --- a/Platform/common/rpc/rpc_common.h +++ b/Platform/common/rpc/rpc_common.h @@ -56,7 +56,7 @@ typedef enum { { RET_NOTSUPPORT, "NotSupport"},\ { RET_INPUTERR, "InputError"},\ { RET_IPINVALID, "IpInvalid"},\ - { RET_BR_INVALID, "BrNameInvalid"}, + { RET_BR_INVALID, "BrNameInvalid"},\ { RET_EXIST, "AlreadyExist"}\ } diff --git a/Platform/user/configm/config-server/netconfig/parsefile.c b/Platform/user/configm/config-server/netconfig/parsefile.c index 16278c445..f3103edec 100644 --- a/Platform/user/configm/config-server/netconfig/parsefile.c +++ b/Platform/user/configm/config-server/netconfig/parsefile.c @@ -239,9 +239,7 @@ int conf_value_in_block_del(char *conf_path, char *start_str, int conf_value_block_del(char *conf_path, char *start_str, char *end_str) { char config_linebuf[IF_BUFF_LEN]; - int configbuf_lenth = strlen(conf_buff) + 5; long congig_lenth = 0; - boolean next_flag = FALSE; char *start_line = NULL; FILE *f = fopen(conf_path, "r+"); @@ -256,7 +254,7 @@ int conf_value_block_del(char *conf_path, char *start_str, char *end_str) congig_lenth = ftell(f); - char sum_buf[congig_lenth + configbuf_lenth]; + char sum_buf[congig_lenth]; memset(sum_buf, 0, sizeof(sum_buf));