mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Update buffer size of set to 4096
This commit is contained in:
parent
95848b941b
commit
1fa64da324
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue