Fix from head.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 1 Mar 2004 13:24:08 +0000 (13:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 1 Mar 2004 13:24:08 +0000 (13:24 +0000)
apps/asn1pars.c

index 6c40685bbd2dee421ea83d3c2f877d5e4c4c9202..7db40adf0436b3edc33edeb201b4382ed3d46023 100644 (file)
@@ -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");