Update buffer size of set to 4096

This commit is contained in:
Vivek Kumar Dutta 2025-03-13 13:40:36 +05:30 committed by Vivek Dutta
parent 95848b941b
commit 1fa64da324
2 changed files with 3 additions and 3 deletions

View file

@ -1623,7 +1623,7 @@ static int get_datatype(char *type)
static int mparam_set_value(DMPARAM_ARGS)
{
char refparam[MAX_DM_PATH] = {0};
char param_value[2048] = {0};
char param_value[4096] = {0};
char *value = dmstrdup("");
snprintf(refparam, MAX_DM_PATH, "%s%s", node->current_object, leaf->parameter);

View file

@ -1424,7 +1424,7 @@ static int uci_set_value(json_object *mapping_obj, int json_version, char *refpa
struct json_object *list_name = NULL;
struct json_object *linker_jobj = NULL;
char *opt_temp = NULL;
char buf_value[1024] = {0};
char buf_value[4096] = {0};
int res = 0;
json_object_object_get_ex(mapping_obj, "uci", &uci_obj);
@ -1598,7 +1598,7 @@ static int uci_v1_set_value(json_object *mapping_obj, int json_version, char *re
{
struct json_object *data_s = NULL;
struct json_object *key = NULL, *list = NULL, *linker_jobj = NULL;
char buf_value[1024] = {0};
char buf_value[4096] = {0};
json_object_object_get_ex(mapping_obj, "data", &data_s);
json_object_object_get_ex(mapping_obj, "key", &key);