termux-packages/root-packages/tshark/caputils-ws80211.c.patch
2022-04-18 14:30:47 +05:30

12 lines
332 B
Diff

--- ./caputils/ws80211_utils.c 2017-10-10 17:50:57.000000000 +0000
+++ ../ws80211_utils.c 2017-10-18 08:19:26.903580180 +0000
@@ -671,7 +671,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;