summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]
}}
}