ref: 495f9ed1829ea0843bf1cc5395d1f7fd9a8a6c9b
parent: e24a46183972b00f59f0ce9b35a3ddcf78faf142
author: Quentin Rameau <[email protected]>
date: Fri Oct 2 11:41:35 EDT 2020
libmac: Fix iteration limit over mapsec array
--- a/src/libmach/findsec.c
+++ b/src/libmach/findsec.c
@@ -10,7 +10,7 @@
int i;
struct mapsec *sec;
- for (i = 0; i < map->sec; i++) {
+ for (i = 0; i < map->n; i++) {
char *s = map->sec[i].name;
if (s && strcmp(s, name) == 0)
return i;