diff options
Diffstat (limited to 'lib/version.c')
-rw-r--r-- | lib/version.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/version.c b/lib/version.c index f957f08..01c2a31 100644 --- a/lib/version.c +++ b/lib/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 |