Small fix for cross-platforming of low-level C bindings
This commit is contained in:
parent
a6f5fd8c24
commit
dbaa2df500
@ -208,7 +208,7 @@ pub fn make_tmp_dir<P: AsRef<Path>>(
|
||||
// Push NULL byte so that we have a proper NULL-terminated string
|
||||
template.push(0);
|
||||
|
||||
let returned_buffer = unsafe { libc::mkdtemp(template.as_mut_ptr() as *mut i8) };
|
||||
let returned_buffer = unsafe { libc::mkdtemp(template.as_mut_ptr() as *mut libc::c_char) };
|
||||
|
||||
// Check errno immediately, so that nothing else can overwrite it.
|
||||
let err = std::io::Error::last_os_error();
|
||||
|
Loading…
Reference in New Issue
Block a user