[ncm] fix: header size report

This commit is contained in:
鲁树人 2024-09-14 22:25:17 +01:00
parent 3cdb14fc96
commit b1fcdb5895

View File

@ -55,7 +55,7 @@ impl NCMFile {
{
let header = header.as_ref();
if header.len() < 14 {
Err(Error::HeaderTooSmall(14 - header.len()))?;
Err(Error::HeaderTooSmall(14))?;
}
if !header.starts_with(b"CTENFDAM") {
Err(Error::NotNCMFile)?;