about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-08 21:25:39 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-08 21:25:39 +0200
commitec0ca3a7c64c08dab44eb30f11b2b0870c4583ea (patch)
treeae74916cdb4f251966c908af8d0f6b2c6d6a2a0c
parentd0916c57ca480cb1a7672c02cda00ec008a50c3c (diff)
downloadrust-ec0ca3a7c64c08dab44eb30f11b2b0870c4583ea.tar.gz
rust-ec0ca3a7c64c08dab44eb30f11b2b0870c4583ea.zip
Remove all usage of hoedown_buffer_puts
-rw-r--r--src/librustdoc/html/markdown.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 35d0f0a116d..735c9d8af7a 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -528,7 +528,6 @@ extern {
     fn hoedown_document_free(md: *mut hoedown_document);
 
     fn hoedown_buffer_new(unit: libc::size_t) -> *mut hoedown_buffer;
-    fn hoedown_buffer_puts(b: *mut hoedown_buffer, c: *const libc::c_char);
     fn hoedown_buffer_free(b: *mut hoedown_buffer);
     fn hoedown_buffer_put(b: *mut hoedown_buffer, c: *const u8, len: libc::size_t);
 }
@@ -629,7 +628,7 @@ pub fn render(w: &mut fmt::Formatter,
                      level: libc::c_int, data: *const hoedown_renderer_data,
                      _: libc::size_t) {
         // hoedown does this, we may as well too
-        unsafe { hoedown_buffer_puts(ob, "\n\0".as_ptr() as *const _); }
+        unsafe { hoedown_buffer_put(ob, "\n".as_ptr(), 1); }
 
         // Extract the text provided
         let s = if text.is_null() {