From d41de537a0e31e1c5ad18b5024c781f6e4a07bbb Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 31 Jul 2023 12:19:04 +1000 Subject: fix libtags m4a issue --- lib/libtags/tags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libtags/tags.c b/lib/libtags/tags.c index 6c6b2b55..a027a9ab 100644 --- a/lib/libtags/tags.c +++ b/lib/libtags/tags.c @@ -46,7 +46,8 @@ tagscallcb(Tagctx *ctx, int type, const char *k, char *s, int offset, int size, e = s + strlen(s); while(e != s && (uchar)e[-1] <= ' ') e--; - *e = 0; + if (*e != 0) + *e = 0; } if(*s){ ctx->tag(ctx, type, k, s, offset, size, f); -- cgit v1.2.3