From 2d56837b2fabf6a7cc11f02b51f20a1e35128c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Wed, 3 Nov 2021 14:45:27 +0000 Subject: [PATCH] zuke: fix search function ignoring matching artist name --- sys/src/cmd/audio/zuke/zuke.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/cmd/audio/zuke/zuke.c b/sys/src/cmd/audio/zuke/zuke.c index 9cbdb8f95..191aa19ce 100644 --- a/sys/src/cmd/audio/zuke/zuke.c +++ b/sys/src/cmd/audio/zuke/zuke.c @@ -941,6 +941,8 @@ search(char d) if(cistrstr(m->artist[a], buf) != nil) break; } + if(a < m->numartist) + break; if(m->album != nil && cistrstr(m->album, buf) != nil) break; if(m->title != nil && cistrstr(m->title, buf) != nil)