shithub: zuke

Download patch

ref: 28593db7fff162829ff8aa5ddeab86dcb4d70482
parent: 639f8704872e6c6b2f7e609f802da97f1faa11ac
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Jun 1 13:27:24 EDT 2020

mkplist: human readable error re new formats added to libtags

--- a/mkplist.c
+++ b/mkplist.c
@@ -189,7 +189,9 @@
 					}
 					curr->path = strdup(path);
 					curr->duration = ctx.duration;
-					curr->filefmt = ctx.format < nelem(fmts) ? fmts[ctx.format] : "FIXMEFMT";
+					if(ctx.format >= nelem(fmts))
+						sysfatal("mkplist needs a rebuild with updated libtags");
+					curr->filefmt = fmts[ctx.format];
 				}
 				Bterm(bf);
 			}else if(depth < Maxdepth){ /* recurse into the directory */