Skip to content
Snippets Groups Projects
Commit 37d7a198 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added zero termination, as the OpenSSL version string was written without

it!
parent 16fe0c9b
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ char *curl_version(void)
#if (SSLEAY_VERSION_NUMBER >= 0x906000)
{
char sub[2];
sub[1]=0;
if(SSLEAY_VERSION_NUMBER&0xff0) {
sub[0]=((SSLEAY_VERSION_NUMBER>>4)&0xff) + 'a' -1;
}
......@@ -63,6 +64,7 @@ char *curl_version(void)
#else
{
char sub[2];
sub[1]=0;
if(SSLEAY_VERSION_NUMBER&0x0f) {
sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment