File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,6 @@ extern {
528
528
fn hoedown_document_free ( md : * mut hoedown_document ) ;
529
529
530
530
fn hoedown_buffer_new ( unit : libc:: size_t ) -> * mut hoedown_buffer ;
531
- fn hoedown_buffer_puts ( b : * mut hoedown_buffer , c : * const libc:: c_char ) ;
532
531
fn hoedown_buffer_free ( b : * mut hoedown_buffer ) ;
533
532
fn hoedown_buffer_put ( b : * mut hoedown_buffer , c : * const u8 , len : libc:: size_t ) ;
534
533
}
@@ -629,7 +628,7 @@ pub fn render(w: &mut fmt::Formatter,
629
628
level : libc:: c_int , data : * const hoedown_renderer_data ,
630
629
_: libc:: size_t ) {
631
630
// hoedown does this, we may as well too
632
- unsafe { hoedown_buffer_puts ( ob, "\n \0 " . as_ptr ( ) as * const _ ) ; }
631
+ unsafe { hoedown_buffer_put ( ob, "\n " . as_ptr ( ) , 1 ) ; }
633
632
634
633
// Extract the text provided
635
634
let s = if text. is_null ( ) {
You can’t perform that action at this time.
0 commit comments