diff --git a/src/parser.rs b/src/parser.rs index e2ba1120..2fdcf93f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -36,13 +36,13 @@ pub fn parse_bytes(file_string_as_bytes: Vec, url: &str) -> Result(), 0); + let xml = xmlReadMemory(file, xsl_file_string_len, url, std::ptr::null::(), 0); let ptr = xsltParseStylesheetDoc(xml); diff --git a/src/stylesheet.rs b/src/stylesheet.rs index 82fd0e12..958c4a8f 100644 --- a/src/stylesheet.rs +++ b/src/stylesheet.rs @@ -47,7 +47,7 @@ impl Stylesheet { let params_cstrings = params_cstrings_result?; - let mut params_cstrings_pointers: Vec<*const i8> = params_cstrings.iter() + let mut params_cstrings_pointers: Vec<*const libc::c_char> = params_cstrings.iter() .map(|cstr| cstr.as_ptr()) .collect();