diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-31 12:19:04 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-31 12:19:04 +1000 |
| commit | d41de537a0e31e1c5ad18b5024c781f6e4a07bbb (patch) | |
| tree | dc724db1924a7d750719ac7892563be13149bc2b /lib | |
| parent | 34a4207fb9c8214a5dde3e9a4f6bd576678f819b (diff) | |
| download | tangara-fw-d41de537a0e31e1c5ad18b5024c781f6e4a07bbb.tar.gz | |
fix libtags m4a issue
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libtags/tags.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
