summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-03-27 20:24:57 +0100
committerTom Smeding <tom.smeding@gmail.com>2020-03-27 20:24:57 +0100
commit6ffcc5a5c5c16ae47c712de9635dcc46d363dc23 (patch)
tree7cd1c794f569002f0e3589daca1a2f3d20e05f91 /src
parentc1f987beef517e5983835e81e4dc56c6285cf992 (diff)
Fix mixed ascii/unicode text in terminal outputHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/id3v2.rs2
1 files changed, 1 insertions, 1 deletions
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]
}}
}