From fbce9754d7cb64027b3dc065261e7c8d774f04b4 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Mon, 16 Jun 2025 05:51:03 +1000 Subject: [PATCH] rust: Fix BMP resource loader path --- src/rust/nehe/context/copypass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/nehe/context/copypass.rs b/src/rust/nehe/context/copypass.rs index bed67e8..37fa268 100644 --- a/src/rust/nehe/context/copypass.rs +++ b/src/rust/nehe/context/copypass.rs @@ -67,7 +67,7 @@ impl NeHeCopyPass<'_> { let mut path = CString::from(CStr::from_ptr(SDL_GetBasePath())).into_bytes(); path.extend_from_slice(resource_path.as_bytes()); - CString::from_vec_with_nul_unchecked(path) + CString::from_vec_unchecked(path) }; // Load image into a surface