From b1fcdb5895bceeca7dae305fa7a9689b68f1d3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 14 Sep 2024 22:25:17 +0100 Subject: [PATCH] [ncm] fix: header size report --- um_crypto/ncm/src/header.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/um_crypto/ncm/src/header.rs b/um_crypto/ncm/src/header.rs index b4edb70..2ab8bfd 100644 --- a/um_crypto/ncm/src/header.rs +++ b/um_crypto/ncm/src/header.rs @@ -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)?;