]> granicus.if.org Git - curl/commitdiff
on albert chin's comment I remade the fix to set '\0' instead of 0 since
authorDaniel Stenberg <daniel@haxx.se>
Tue, 24 Apr 2001 06:12:07 +0000 (06:12 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 24 Apr 2001 06:12:07 +0000 (06:12 +0000)
they're chars

lib/version.c

index ab11122c8e40f19a86a8095d59ed404b6c962bd6..32a37b067fff08ea9811d250230af9b213f6f3e0 100644 (file)
@@ -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,