cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: PATCH 7.7.2! ;-/

From: <curl_at_thewrittenword.com>
Date: Mon, 23 Apr 2001 20:23:42 -0500

On Mon, Apr 23, 2001 at 09:53:34AM +0200, Daniel Stenberg wrote:
> This bug actually is present for OpenSSL before 0.9 too, but most notably I
> just added it for version strings made for OpenSSL 0.9.6 and later!

Wouldn't:
  sub[1] = '\0';
be better since sub is char?

> Sorry for the inconvenience!
>
> diff -u -r1.10 version.c
> --- version.c 2001/04/06 08:48:42 1.10
> +++ version.c 2001/04/23 07:52:07
> @@ -41,6 +41,7 @@
> #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 @@
> #else
> {
> char sub[2];
> + sub[1]=0;
> if(SSLEAY_VERSION_NUMBER&0x0f) {
> sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) + 'a' -1;
> }
>
>
> --
> Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/

-- 
albert chin (china_at_thewrittenword.com)
Received on 2001-04-24