rust: Fix BMP resource loader path

This commit is contained in:
2025-06-16 05:51:03 +10:00
parent 80a209d00c
commit fbce9754d7

View File

@@ -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