We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9df37 commit 76b5926Copy full SHA for 76b5926
boring/src/ssl/bio.rs
@@ -219,7 +219,7 @@ struct BIO_METHOD(*mut ffi::BIO_METHOD);
219
impl BIO_METHOD {
220
fn new<S: Read + Write>() -> BIO_METHOD {
221
unsafe {
222
- let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, b"rust\0".as_ptr().cast());
+ let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, c"rust".as_ptr().cast());
223
assert!(!ptr.is_null());
224
let ret = BIO_METHOD(ptr);
225
assert!(ffi::BIO_meth_set_write(ptr, Some(bwrite::<S>)) != 0);
0 commit comments