From 3b7dd6d34c7fa9f625c932385cd0649d11a18668 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 1 Mar 2004 13:24:08 +0000 Subject: [PATCH] Fix from head. --- apps/asn1pars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.25.1