0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-13 14:09:19 +00:00
termux-packages/x11-packages/wireshark-qt/no-legacy-index.patch
2022-10-17 18:28:40 +09:00

12 lines
266 B
Diff

--- a/capture/ws80211_utils.c
+++ b/capture/ws80211_utils.c
@@ -660,7 +660,7 @@
/* Update names of user created monitor interfaces */
while(fgets(line, sizeof(line), fh)) {
- t = index(line, ':');
+ t = strchr(line, ':');
if (!t)
continue;
*t = 0;