shithub: front

Download patch

ref: 91b19a19838036c21c25c85ec89e4c986f9a35aa
parent: be48d656d315427f9953406e360af599ecfc88cb
author: Noam Preil <noam@pixelhero.dev>
date: Sun Sep 29 11:08:34 EDT 2024

aux/cddb: fix artist line splitting

--- a/sys/src/cmd/aux/cddb.c
+++ b/sys/src/cmd/aux/cddb.c
@@ -105,10 +105,10 @@
 {
 	char *p;
 
-	if((p = strchr(s, '/')) == nil)
+	if((p = strstr(s, " / ")) == nil)
 		return nil;
-	p[-1] = 0;
-	return p+2;
+	*p = 0;
+	return p+3;
 }
 
 static int
--