Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/webcfg_rbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,11 +972,11 @@ rbusError_t webcfgSubdocForceResetSetHandler(rbusHandle_t handle, rbusProperty_t
{
SubdocResetVal = strdup(data);
free(data);
char str[256] = {'\0'};
char str[MAX_SUBDOC_COUNT * MAX_SUBDOC_NAME_LEN] = {'\0'};
int n = 0;
webcfgError_t ret = ERROR_FAILURE;
char delim[] = ",";
char subdocNames[16][16] = {{'\0'}};
char subdocNames[MAX_SUBDOC_COUNT][MAX_SUBDOC_NAME_LEN] = {{'\0'}};
strncpy(str, SubdocResetVal, sizeof(str)-1);
Comment thread
sadhyama marked this conversation as resolved.
WebcfgInfo("Subdocs need to reset from webconfig DB & tmplist - %s\n",str);
char *ptr = strtok(str, delim);
Expand Down
2 changes: 2 additions & 0 deletions src/webcfg_rbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

#define MAX_FORCE_RESET_SET_COUNT 3
#define MAX_FORCE_RESET_TIME_SECS 24*60*60
#define MAX_SUBDOC_COUNT 16
#define MAX_SUBDOC_NAME_LEN 32

#define WEBCFG_COMPONENT_NAME "webconfig"
#define MAX_PARAMETERNAME_LEN 4096
Expand Down
Loading