Blame SOURCES/file-5.11-softmagic-read.patch

89be67
diff --git a/src/softmagic.c b/src/softmagic.c
89be67
index 8d08cad..8262788 100644
89be67
--- a/src/softmagic.c
89be67
+++ b/src/softmagic.c
89be67
@@ -199,9 +199,9 @@ match(struct magic_set *ms, struct magic *magic, uint32_t nmagic,
89be67
 		if (file_check_mem(ms, ++cont_level) == -1)
89be67
 			return -1;
89be67
 
89be67
-		while (magic[magindex+1].cont_level != 0 &&
89be67
-		    ++magindex < nmagic) {
89be67
-			m = &magic[magindex];
89be67
+		while (magindex + 1 < nmagic &&
89be67
+			magic[magindex + 1].cont_level != 0) {
89be67
+			m = &magic[++magindex];
89be67
 			ms->line = m->lineno; /* for messages */
89be67
 
89be67
 			if (cont_level < m->cont_level)