Skip to content

Commit

Permalink
Merge pull request #234 from nlrcomcast/max_url_size
Browse files Browse the repository at this point in the history
Increased webConfigURL array size
  • Loading branch information
sadhyama authored Dec 6, 2024
2 parents c3f1c1d + b235043 commit 0b7bc1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/webcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/* Macros */
/*----------------------------------------------------------------------------*/
#define MAX_BUF_SIZE 256
#define MAX_URL_LENGTH 768
#define MAX_PARAMETERNAME_LENGTH 512

#ifdef BUILD_YOCTO
Expand Down
4 changes: 2 additions & 2 deletions src/webcfg_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ WEBCFG_STATUS webcfg_http_request(char **configData, int r_count, int status, lo
struct token_data data;
data.size = 0;
void * dataVal = NULL;
char syncURL[256]={'\0'};
char syncURL[MAX_URL_LENGTH]={'\0'};
char docname_upper[64]={'\0'};

curl = curl_easy_init();
Expand Down Expand Up @@ -323,7 +323,7 @@ WEBCFG_STATUS webcfg_http_request(char **configData, int r_count, int status, lo
if(strlen(docList) > 0)
{
WebcfgDebug("docList is %s\n", docList);
snprintf(syncURL, MAX_BUF_SIZE, "%s?group_id=%s", webConfigURL, docList);
snprintf(syncURL, MAX_URL_LENGTH, "%s?group_id=%s", webConfigURL, docList);
WEBCFG_FREE(webConfigURL);
WebcfgDebug("syncURL is %s\n", syncURL);
webConfigURL =strdup( syncURL);
Expand Down

0 comments on commit 0b7bc1f

Please sign in to comment.