diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-03-27 20:24:57 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-03-27 20:24:57 +0100 |
commit | 6ffcc5a5c5c16ae47c712de9635dcc46d363dc23 (patch) | |
tree | 7cd1c794f569002f0e3589daca1a2f3d20e05f91 /src | |
parent | c1f987beef517e5983835e81e4dc56c6285cf992 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/id3v2.rs | 2 |
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] }} } |