aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/version.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/version.c b/lib/version.c
index 9085f7df8..43b993694 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -57,8 +57,9 @@ char *curl_version(void)
size_t len;
size_t left = sizeof(version);
strcpy(ptr, LIBCURL_NAME "/" LIBCURL_VERSION );
- ptr=strchr(ptr, '\0');
- left -= strlen(ptr);
+ len = strlen(ptr);
+ left -= len;
+ ptr += len;
len = Curl_ssl_version(ptr, left);
left -= len;