projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16fe0c9
)
Added zero termination, as the OpenSSL version string was written without
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Apr 2001 07:54:12 +0000
(07:54 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Apr 2001 07:54:12 +0000
(07:54 +0000)
it!
lib/version.c
patch
|
blob
|
history
diff --git
a/lib/version.c
b/lib/version.c
index
85a1581
..
ab11122
100644
(file)
--- 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;
}