Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Sep 3, 2024
1 parent f53cd88 commit 734d33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ fn get_interface_and_mtu_windows(socket: &UdpSocket) -> Result<(String, usize),
if iface.InterfaceIndex == addr.InterfaceIndex {
if let Ok(mtu) = iface.NlMtu.try_into() {
let name = String::with_capacity(256); // IF_NAMESIZE not available?
if !if_indextoname(iface.InterfaceIndex, &name).is_null() {
if !if_indextoname(iface.InterfaceIndex, &mut name).is_null() {
res = Ok((name, mtu));
}
}
Expand Down

0 comments on commit 734d33e

Please sign in to comment.