diff options
author | Steve Holme <steve_holme@hotmail.com> | 2011-09-26 00:01:09 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-09-26 00:01:09 +0200 |
commit | 400055bfaaa1b13b3f3051f69df9630da793dc8b (patch) | |
tree | 24a982fde9b99d9bf23cb2b1761e521154117815 | |
parent | 5801ddb85cc26dea10f73246b364d8cc52557372 (diff) |
smtp_connect: use defined buffer length for hostname
-rw-r--r-- | lib/smtp.c | 2 |
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 */ |