projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5801ddb
)
smtp_connect: use defined buffer length for hostname
author
Steve Holme
<steve_holme@hotmail.com>
Sun, 25 Sep 2011 22:01:09 +0000
(
00:01
+0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 25 Sep 2011 22:01:09 +0000
(
00:01
+0200)
lib/smtp.c
patch
|
blob
|
history
diff --git
a/lib/smtp.c
b/lib/smtp.c
index bb29a83cf7fa8ab0ac47e5ea9977a73a0cddcaec..bf48e288b727b948ba3a82b890e633f5951012fa 100644
(file)
--- 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 */