git: 9front

Download patch

ref: 63f9905787cead9cdcf2dd4ba7bc405084400d0a
parent: 787cb68076882143a4d4fdc0282fc96e96cd6011
author: Noam Preil <noam@pixelhero.dev>
date: Tue Sep 24 02:47:26 EDT 2024

aux/cddb: support very long artist+album name combos

--- a/sys/src/cmd/aux/cddb.c
+++ b/sys/src/cmd/aux/cddb.c
@@ -233,7 +233,10 @@
 				t->artist = estrdup(p);
 				p = a;
 			}
-			t->title = estrdup(p);
+			if(t->title != nil)
+				t->title = smprint("%s%s", t->title, p);
+			else
+				t->title = estrdup(p);
 		}
 		else if(strncmp(p, "DYEAR=", 6) == 0) {
 			t->year = estrdup(p+6);
--