shithub: scc

Download patch

ref: 4f0bf48999137e2429bab02829f1d34373d3f67a
parent: 059ee8d668654371daeca95d67fc0c8626cddef1
parent: 495f9ed1829ea0843bf1cc5395d1f7fd9a8a6c9b
author: Naveen Narayanan <zerous@simple-cc.org>
date: Thu Oct 15 11:10:21 EDT 2020

Merge branch 'master' of ssh://simple-cc.org:/home/zerous/scc into master

--- 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;