aboutsummaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-24 06:12:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-24 06:12:07 +0000
commit0b7e0638a9a6b66104e8ec563b0ea7c81cea4739 (patch)
treecbd44dbd670f9ec9cc2304284fbf579212a6f000 /lib/version.c
parentbe49b01952f060738879a40017e2077addd4fbf1 (diff)
on albert chin's comment I remade the fix to set '\0' instead of 0 since
they're chars
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/version.c b/lib/version.c
index ab11122c8..32a37b067 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -41,12 +41,12 @@ char *curl_version(void)
#if (SSLEAY_VERSION_NUMBER >= 0x906000)
{
char sub[2];
- sub[1]=0;
+ sub[1]='\0';
if(SSLEAY_VERSION_NUMBER&0xff0) {
sub[0]=((SSLEAY_VERSION_NUMBER>>4)&0xff) + 'a' -1;
}
else
- sub[0]=0;
+ sub[0]='\0';
sprintf(ptr, " (OpenSSL %lx.%lx.%lx%s)",
(SSLEAY_VERSION_NUMBER>>28)&0xf,
@@ -64,12 +64,12 @@ char *curl_version(void)
#else
{
char sub[2];
- sub[1]=0;
+ sub[1]='\0';
if(SSLEAY_VERSION_NUMBER&0x0f) {
sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1;
}
else
- sub[0]=0;
+ sub[0]='\0';
sprintf(ptr, " (SSL %x.%x.%x%s)",
(SSLEAY_VERSION_NUMBER>>12)&0xff,