From 6ffcc5a5c5c16ae47c712de9635dcc46d363dc23 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 27 Mar 2020 20:24:57 +0100 Subject: Fix mixed ascii/unicode text in terminal output --- src/id3v2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/id3v2.rs b/src/id3v2.rs index d11d445..7ad8edd 100644 --- a/src/id3v2.rs +++ b/src/id3v2.rs @@ -240,7 +240,7 @@ impl RawFrame { ($v:expr) => {{ let v = $v; let mut i = 0; - while i <= v.len() - 2 && v[i] != 0 && v[i+1] != 0 { i += 2; } + while i <= v.len() - 2 && (v[i] != 0 || v[i+1] != 0) { i += 2; } &v[..i] }} } -- cgit v1.2.3-70-g09d2