mirror of
https://github.com/curl/curl.git
synced 2026-07-22 14:27:15 +03:00
smtp_connect: use defined buffer length for hostname
This commit is contained in:
parent
5801ddb85c
commit
400055bfaa
1 changed files with 1 additions and 1 deletions
|
|
@ -1100,7 +1100,7 @@ static CURLcode smtp_connect(struct connectdata *conn,
|
|||
struct pingpong *pp = &smtpc->pp;
|
||||
const char *path = conn->data->state.path;
|
||||
int len;
|
||||
char localhost[1024 + 1];
|
||||
char localhost[HOSTNAME_MAX + 1];
|
||||
|
||||
*done = FALSE; /* default to not done yet */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue