mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-27 16:08:43 +03:00
Fix ARM
This commit is contained in:
1 parent
54525dedb6
commit
fb3a9fa80a
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user