shithub: libtags

Download patch

ref: 3ab23ef29a9baa59e22a774a9d0c9c166b081a55
parent: 3e370bf9540c944ddf58e28ad92583b40936c6c1
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Apr 30 08:27:07 EDT 2021

use nelem

--- a/tags.c
+++ b/tags.c
@@ -65,7 +65,7 @@
 	ctx->found = 0;
 	ctx->format = Funknown;
 	res = -1;
-	for(i = 0; i < (int)(sizeof(g)/sizeof(g[0])); i++){
+	for(i = 0; i < nelem(g); i++){
 		ctx->num = 0;
 		if(g[i].f(ctx) == 0){
 			if(ctx->num > 0)