aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-07 18:46:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-07 18:46:28 +0000
commit3394c01826aef99a645db398c1fb6bce4693bd35 (patch)
treec03e8d01e78b5db486cdb66c53e06de054a7fd98 /lib/urldata.h
parentd67ea8c7ad76380c9c757072d402f62513985a05 (diff)
We don't support any long protocol names so we can use a smaller buffer.
Also, make sure we have room for the trailing zero, only scan to size-1. Gisle Vanem reported.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 8d29cf66e..e1fdcc288 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -438,7 +438,7 @@ struct connectdata {
#else
struct sockaddr_in serv_addr;
#endif
- char protostr[64]; /* store the protocol string in this buffer */
+ char protostr[16]; /* store the protocol string in this buffer */
struct hostname host;
struct hostname proxy;