From: Yang Tse Date: Mon, 3 Nov 2008 14:58:08 +0000 (+0000) Subject: fix length of longest IPv6 address string X-Git-Tag: curl-7_19_1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74e97183702b37461f981de780c1e2209d45f45a;p=thirdparty%2Fcurl.git fix length of longest IPv6 address string --- diff --git a/lib/urldata.h b/lib/urldata.h index 4113f3a51d..4d24f1cab1 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -48,7 +48,8 @@ #define CURL_DEFAULT_USER "anonymous" #define CURL_DEFAULT_PASSWORD "ftp@example.com" -#define MAX_IPADR_LEN (4*9) /* should be enough to hold the longest ipv6 one */ +/* length of longest IPv6 address string including the trailing null */ +#define MAX_IPADR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") #include "cookie.h" #include "formdata.h"