Use basename of objxref.pl not whole path in generated header.
[oweals/openssl.git] / crypto / asn1 / a_set.c
index 2405ce1ec2548ffb6f303d5736ca4e2e07098de8..2675476f185d31fc432d47f791c13a125cdd43b1 100644 (file)
@@ -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;