summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/version.c')
-rw-r--r--libs/libcurl/src/version.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/libcurl/src/version.c b/libs/libcurl/src/version.c
index 86c8aff13b..b98c831177 100644
--- a/libs/libcurl/src/version.c
+++ b/libs/libcurl/src/version.c
@@ -211,8 +211,12 @@ char *curl_version(void)
#endif
#ifdef USE_LIBPSL
- msnprintf(psl_version, sizeof(psl_version), "libpsl/%s", psl_get_version());
- src[i++] = psl_version;
+ {
+ int num = psl_check_version_number(0);
+ msnprintf(psl_version, sizeof(psl_version), "libpsl/%d.%d.%d",
+ num >> 16, (num >> 8) & 0xff, num & 0xff);
+ src[i++] = psl_version;
+ }
#endif
#ifdef USE_SSH