From: Dr. Stephen Henson Date: Mon, 1 Mar 2004 13:24:08 +0000 (+0000) Subject: Fix from head. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b7dd6d34c7fa9f625c932385cd0649d11a18668;p=oweals%2Fopenssl.git Fix from head. --- diff --git a/apps/asn1pars.c b/apps/asn1pars.c index 6c40685bbd..7db40adf04 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -312,7 +312,7 @@ bad: num -= offset; - if ((length == 0) || (length > num)) length=(unsigned int)num; + if ((length == 0) || ((long)length > num)) length=(unsigned int)num; if(derout) { if(BIO_write(derout, str + offset, length) != (int)length) { BIO_printf(bio_err, "Error writing output\n");