aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index bb29a83cf..bf48e288b 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -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 */