This commit is contained in:
Taylor Trump authored and GitHub committed 2017-01-05 15:21:24 +01:00
1 parent 54525dedb6
commit fb3a9fa80a
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ fn get_pw_entry(buf: &mut [i8; 1024]) -> Passwd {
// Try and read the pw file.
let uid = unsafe { libc::getuid() };
let status = unsafe {
libc::getpwuid_r(uid, &mut entry, buf.as_mut_ptr(), buf.len(), &mut res)
libc::getpwuid_r(uid, &mut entry, buf.as_mut_ptr() as *mut _, buf.len(), &mut res)
};
if status < 0 {