From: Daniel Stenberg Date: Mon, 23 Apr 2001 07:54:12 +0000 (+0000) Subject: Added zero termination, as the OpenSSL version string was written without X-Git-Tag: curl-7_7_3~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37d7a198d5ec3e4f183a5a81eaf2ee80d0cdf304;p=thirdparty%2Fcurl.git Added zero termination, as the OpenSSL version string was written without it! --- diff --git a/lib/version.c b/lib/version.c index 85a15812a2..ab11122c8e 100644 --- a/lib/version.c +++ b/lib/version.c @@ -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; }