aboutsummaryrefslogtreecommitdiffstats
path: root/community/iwd/fix-rawmemchr.patch
blob: 5ea018bd341131593e851775c2fb8714a09310bb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/wiphy.c	2019-11-14 21:04:59.000000000 +0100
+++ b/src/wiphy.c	2019-11-16 21:51:47.458144885 +0100
@@ -500,7 +500,7 @@
 
 	if (out_num)
 		*out_num =
-			(uint8_t *) rawmemchr(wiphy->supported_rates[band], 0) -
+			(uint8_t *) strchr(wiphy->supported_rates[band], 0) -
 			wiphy->supported_rates[band];
 
 	return wiphy->supported_rates[band];