Added zero termination, as the OpenSSL version string was written without
it!
This commit is contained in:
Родитель
16fe0c9be3
Коммит
37d7a198d5
|
@ -41,6 +41,7 @@ char *curl_version(void)
|
||||||
#if (SSLEAY_VERSION_NUMBER >= 0x906000)
|
#if (SSLEAY_VERSION_NUMBER >= 0x906000)
|
||||||
{
|
{
|
||||||
char sub[2];
|
char sub[2];
|
||||||
|
sub[1]=0;
|
||||||
if(SSLEAY_VERSION_NUMBER&0xff0) {
|
if(SSLEAY_VERSION_NUMBER&0xff0) {
|
||||||
sub[0]=((SSLEAY_VERSION_NUMBER>>4)&0xff) + 'a' -1;
|
sub[0]=((SSLEAY_VERSION_NUMBER>>4)&0xff) + 'a' -1;
|
||||||
}
|
}
|
||||||
|
@ -63,6 +64,7 @@ char *curl_version(void)
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
char sub[2];
|
char sub[2];
|
||||||
|
sub[1]=0;
|
||||||
if(SSLEAY_VERSION_NUMBER&0x0f) {
|
if(SSLEAY_VERSION_NUMBER&0x0f) {
|
||||||
sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1;
|
sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче