Paul Gofman : nsiproxy.sys: Strip trailing end of line for iface name on Linux.
Alexandre Julliard
julliard at winehq.org
Tue Jun 21 15:46:35 CDT 2022
Module: wine
Branch: master
Commit: 6b151e69376079b17507892d3d8f4e1c7cbb1d98
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6b151e69376079b17507892d3d8f4e1c7cbb1d98
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Mon Jun 20 14:24:48 2022 -0500
nsiproxy.sys: Strip trailing end of line for iface name on Linux.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/nsiproxy.sys/ip.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/nsiproxy.sys/ip.c b/dlls/nsiproxy.sys/ip.c
index 27344756580..79f3bd80bfe 100644
--- a/dlls/nsiproxy.sys/ip.c
+++ b/dlls/nsiproxy.sys/ip.c
@@ -1014,7 +1014,7 @@ static NTSTATUS ipv4_neighbour_enumerate_all( void *key_data, UINT key_size, voi
#ifdef __linux__
{
- char buf[512], *ptr;
+ char buf[512], *ptr, *s;
UINT atf_flags;
FILE *fp;
@@ -1053,6 +1053,9 @@ static NTSTATUS ipv4_neighbour_enumerate_all( void *key_data, UINT key_size, voi
while (*ptr && !isspace( *ptr )) ptr++; /* mask (skip) */
while (*ptr && isspace( *ptr )) ptr++;
+ s = ptr;
+ while (*s && !isspace(*s)) s++;
+ *s = 0;
if (!convert_unix_name_to_luid( ptr, &entry.luid )) continue;
if (!convert_luid_to_index( &entry.luid, &entry.if_index )) continue;
More information about the wine-cvs
mailing list