diff options
author | Andy Polyakov <appro@openssl.org> | 2007-12-29 18:32:34 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2007-12-29 18:32:34 +0000 |
commit | 4be63cfb5514fe0ed8df9a880842c1203d7388ec (patch) | |
tree | 31c0d5ed832ec4e8d25e18a004cd17c1e4276d93 | |
parent | ca64056836116fae62285f2e5b6ccb4e087e80e7 (diff) |
Source readability fix, which incidentally works around XLC compiler bug.
-rw-r--r-- | crypto/asn1/t_x509.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c index 206f681320..1bb8e82d63 100644 --- a/crypto/asn1/t_x509.c +++ b/crypto/asn1/t_x509.c @@ -437,13 +437,13 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase) l=80-2-obase; - b=s=X509_NAME_oneline(name,NULL,0); - if (!*s) + b=X509_NAME_oneline(name,NULL,0); + if (!*b) { OPENSSL_free(b); return 1; } - s++; /* skip the first slash */ + s=b+1; /* skip the first slash */ c=s; for (;;) @@ -468,8 +468,7 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase) { i=s-c; if (BIO_write(bp,c,i) != i) goto err; - c+=i; - c++; + c=s+1; /* skip following slash */ if (*s != '\0') { if (BIO_write(bp,", ",2) != 2) goto err; |