Skip to content

Commit 0db046d

Browse files
committed
cli/self_update: Fix error when casting to char*
1 parent 6b0f0b1 commit 0db046d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/self_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ fn do_anti_sudo_check(no_prompt: bool) -> Result<()> {
463463
libc::getpwuid_r(
464464
libc::geteuid(),
465465
&mut pwd,
466-
&mut buf as *mut [u8] as *mut i8,
466+
&mut buf as *mut [u8] as *mut libc::c_char,
467467
buf.len(),
468468
&mut pwdp,
469469
)

0 commit comments

Comments
 (0)