From 2c98e91276d4555aecaa429bfdd61d9d95476d8f Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 10 Oct 2019 00:22:50 +0200 Subject: [PATCH] target comments of @link2xt --- mmime/src/other.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmime/src/other.rs b/mmime/src/other.rs index a15d8275b..19ebbfdd3 100644 --- a/mmime/src/other.rs +++ b/mmime/src/other.rs @@ -42,11 +42,11 @@ pub(crate) unsafe fn strncasecmp( let s1_slice = std::slice::from_raw_parts( s1 as *const u8, - std::cmp::min(n, strnlen(s1 as *const i8, n)), + strnlen(s1 as *const i8, n), ); let s2_slice = std::slice::from_raw_parts( s2 as *const u8, - std::cmp::min(n, strnlen(s2 as *const i8, n)), + strnlen(s2 as *const i8, n), ); let s1 = std::ffi::CStr::from_bytes_with_nul_unchecked(s1_slice)