]> granicus.if.org Git - curl/commitdiff
curl_version: bump string buffer size to 250
authorDaniel Stenberg <daniel@haxx.se>
Wed, 14 Aug 2019 13:16:07 +0000 (15:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Aug 2019 13:16:07 +0000 (15:16 +0200)
With HTTP/3 libs and plenty TLS libs, I manged to hit the limit (which
causes a truncated output).

lib/version.c

index 5a969b9436da965ed58a0337859a9c9069cbdb32..afad726d810bfb3d7b900aa041f65fe965fc875d 100644 (file)
@@ -103,7 +103,7 @@ static size_t brotli_version(char *buf, size_t bufsz)
 char *curl_version(void)
 {
   static bool initialized;
-  static char version[200];
+  static char version[250];
   char *ptr = version;
   size_t len;
   size_t left = sizeof(version);