diff options
author | matz <matz@ruby-lang.org> | 2006-08-31 10:30:33 +0000 |
---|---|---|
committer | matz <matz@ruby-lang.org> | 2006-08-31 10:30:33 +0000 |
commit | 7e82075e4a9791b833bf83b8198a71cd54fcca09 (patch) | |
tree | d4c52a670064c6bff26552cee94e94f99e8fa9b4 /ext/openssl/ossl_bio.c | |
parent | 35284a26599a05c329a1c3b8dbaf2bcb550e9423 (diff) | |
download | ruby-openssl-history-7e82075e4a9791b833bf83b8198a71cd54fcca09.tar.gz |
* ruby.h (struct RString): embed small strings.
(RSTRING_LEN): defined for accessing string members.
(RSTRING_PTR): ditto.
* string.c: use RSTRING_LEN and RSTRING_PTR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_bio.c')
-rw-r--r-- | ext/openssl/ossl_bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_bio.c b/ext/openssl/ossl_bio.c index 9f22c97..aa0b99f 100644 --- a/ext/openssl/ossl_bio.c +++ b/ext/openssl/ossl_bio.c @@ -39,7 +39,7 @@ ossl_obj2bio(VALUE obj) } else { StringValue(obj); - bio = BIO_new_mem_buf(RSTRING(obj)->ptr, RSTRING(obj)->len); + bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LEN(obj)); if (!bio) ossl_raise(eOSSLError, NULL); } |