aboutsummaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index aa86e3902..86cb113d7 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -107,9 +107,15 @@ char *curl_version(void)
ptr += len;
#endif
#ifdef USE_LIBSSH2
+ (void)snprintf(ptr, left, " libssh2/%s", CURL_LIBSSH2_VERSION);
+/*
+ If another lib version is added below libssh2, this code would instead
+ have to do:
+
len = snprintf(ptr, left, " libssh2/%s", CURL_LIBSSH2_VERSION);
left -= len;
ptr += len;
+*/
#endif
return version;