Use basename of objxref.pl not whole path in generated header.
[oweals/openssl.git] / crypto / asn1 / a_set.c
index 02edaad9ae653fc49c219cb49f2317cd2aa184ba..2675476f185d31fc432d47f791c13a125cdd43b1 100644 (file)
@@ -164,7 +164,7 @@ SetBlob
         }
 
 STACK_OF(BLOCK) *d2i_ASN1_SET(STACK_OF(BLOCK) **a, const unsigned char **pp,
-                             size_t length, d2i_of_void *d2i,
+                             long length, d2i_of_void *d2i,
                              void (*free_func)(BLOCK), int ex_tag,
                              int ex_class)
        {
@@ -218,7 +218,7 @@ STACK_OF(BLOCK) *d2i_ASN1_SET(STACK_OF(BLOCK) **a, const unsigned char **pp,
                if ((s=d2i(NULL,&c.p,c.slen)) == NULL)
                        {
                        ASN1err(ASN1_F_D2I_ASN1_SET,ASN1_R_ERROR_PARSING_SET_ELEMENT);
-                       asn1_add_error(*pp,(int)(c.q- *pp));
+                       asn1_add_error(*pp,(int)(c.p- *pp));
                        goto err;
                        }
                if (!sk_BLOCK_push(ret,s)) goto err;