diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-01 19:40:57 +0200 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-01 19:40:57 +0200 |
commit | 65d4927b8d645d9bcb5f6085a107d314794e8e34 (patch) | |
tree | 0ed1a2ce94a5f5e21b463f0309cca9c24ecdaf2c /crypto/x509/x509_obj.c | |
parent | Better to not have blanks in .cvsignore files (diff) | |
download | openssl-65d4927b8d645d9bcb5f6085a107d314794e8e34.tar.xz openssl-65d4927b8d645d9bcb5f6085a107d314794e8e34.zip |
Another safe stack.
Diffstat (limited to 'crypto/x509/x509_obj.c')
-rw-r--r-- | crypto/x509/x509_obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_obj.c b/crypto/x509/x509_obj.c index 188457872a..b2a33a42b9 100644 --- a/crypto/x509/x509_obj.c +++ b/crypto/x509/x509_obj.c @@ -96,9 +96,9 @@ char *X509_NAME_oneline(X509_NAME *a, char *buf, int len) len--; /* space for '\0' */ l=0; - for (i=0; (int)i<sk_num(a->entries); i++) + for (i=0; i<sk_X509_NAME_ENTRY_num(a->entries); i++) { - ne=(X509_NAME_ENTRY *)sk_value(a->entries,i); + ne=sk_X509_NAME_ENTRY_value(a->entries,i); n=OBJ_obj2nid(ne->object); if ((n == NID_undef) || ((s=OBJ_nid2sn(n)) == NULL)) { |