aboutsummaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-23 07:54:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-23 07:54:12 +0000
commit37d7a198d5ec3e4f183a5a81eaf2ee80d0cdf304 (patch)
tree9e878559c2df53398bc19900e0c05a1bbd6c1fab /lib/version.c
parent16fe0c9be3d8d3b4e81870645eb8b8c98dbfe94a (diff)
Added zero termination, as the OpenSSL version string was written without
it!
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index 85a15812a..ab11122c8 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;
}