mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-07 20:19:51 +00:00
[ncm] fix: header size report
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user