Skip to content

Commit

Permalink
Avoid a compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mnogu committed May 14, 2024
1 parent 9aa1047 commit af64375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tuntap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl TunTap {
TunTapFlag::Tun => b"tun0\0",
TunTapFlag::Tap => b"tap0\0",
};
ifr_name[..name.len()].copy_from_slice(&name.map(|c| c as i8)[..]);
ifr_name[..name.len()].copy_from_slice(&name.map(|c| c as u8)[..]);

// Create a interface
let flag = match flag {
Expand Down

0 comments on commit af64375

Please sign in to comment.