shithub: zuke

Download patch

ref: deab18c9efe042f9af5fda7f304811067a99d78d
parent: de1a93144f88ef3675a036739e05371dcf7ff0a6
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Nov 25 17:29:58 EST 2020

mkplist: fix wrong verb used for duration (thanks qwx)

--- a/mkplist.c
+++ b/mkplist.c
@@ -242,7 +242,7 @@
 	if(m->track != nil)
 		s = seprint(s, buf+sizeof(buf), "%c%ld %s\n", Ptrack, strlen(m->track), m->track);
 	if(m->duration > 0)
-		s = seprint(s, buf+sizeof(buf), "%c %zd\n", Pduration, m->duration);
+		s = seprint(s, buf+sizeof(buf), "%c %llud\n", Pduration, m->duration);
 	if(m->imagesize > 0)
 		s = seprint(s, buf+sizeof(buf), "%c %d %d %d %s\n", Pimage, m->imageoffset, m->imagesize, m->imagereader, m->imagefmt);
 	s = seprint(s, buf+sizeof(buf), "%c %s\n%c %s\n", Pfilefmt, m->filefmt, Ppath, m->path);