Skip to content

Commit 1a800eb

Browse files
committed
fix: max host length
1 parent 0bee5f4 commit 1a800eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_doris/doris.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static int http_put(struct flb_out_doris *ctx,
182182
char* start = strstr(location, "@") + 1;
183183
char* mid = strstr(start, ":");
184184
char* end = strstr(mid, "/api");
185-
char redict_host[50] = {0};
185+
char redict_host[1024] = {0};
186186
memcpy(redict_host, start, mid - start);
187187
char redict_port[10] = {0};
188188
memcpy(redict_port, mid + 1, end - (mid + 1));

0 commit comments

Comments
 (0)