summaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-12 23:56:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-13 22:26:53 +0200
commitf62bd9db90f2a1f25c6e30fea95bd828fbfedbf9 (patch)
treeabc3951144685379c5329dac0e8dc3c31eae5f11 /lib/version.c
parent50842c1b32add07434a79959345595560c93fadf (diff)
downloadcurl-f62bd9db90f2a1f25c6e30fea95bd828fbfedbf9.tar.gz
version: increase buffer space for ssl version output
To avoid it getting truncated, especially when several SSL backends are built-in. Reported-by: Gisle Vanem Fixes #5222 Closes #5226
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/version.c b/lib/version.c
index ac7730203..4d7c2d0a3 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -87,12 +87,12 @@ static size_t brotli_version(char *buf, size_t bufsz)
*/
char *curl_version(void)
{
- static char out[250];
+ static char out[300];
char *outp;
size_t outlen;
const char *src[14];
#ifdef USE_SSL
- char ssl_version[40];
+ char ssl_version[200];
#endif
#ifdef HAVE_LIBZ
char z_version[40];