[ncm] fix: header size report
This commit is contained in:
parent
3cdb14fc96
commit
b1fcdb5895
@ -55,7 +55,7 @@ impl NCMFile {
|
|||||||
{
|
{
|
||||||
let header = header.as_ref();
|
let header = header.as_ref();
|
||||||
if header.len() < 14 {
|
if header.len() < 14 {
|
||||||
Err(Error::HeaderTooSmall(14 - header.len()))?;
|
Err(Error::HeaderTooSmall(14))?;
|
||||||
}
|
}
|
||||||
if !header.starts_with(b"CTENFDAM") {
|
if !header.starts_with(b"CTENFDAM") {
|
||||||
Err(Error::NotNCMFile)?;
|
Err(Error::NotNCMFile)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user