shithub: zuke

Download patch

ref: 8952c92c316b6d97f2306f7f35583631cfca74d2
parent: 29431d5c36b1ddfb4050b753d816cf1a673e7dd5
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Jun 18 05:25:31 EDT 2020

mkplist: fix path->title translation

--- a/mkplist.c
+++ b/mkplist.c
@@ -182,10 +182,8 @@
 					if(ctx.duration == 0)
 						fprint(2, "%s: no duration\n", path);
 					if(curr->title == nil){
-						path[len] = 0;
 						if((s = utfrrune(path, '/')) == nil)
-							s = &path[len];
-						path[len] = '/';
+							s = &path[len+1];
 						curr->title = strdup(s+1);
 					}
 					curr->path = strdup(path);