|
@@ -3,8 +3,8 @@ macro_rules! c_str {
|
|
|
($lit:expr) => {
|
|
|
#[allow(unused_unsafe)]
|
|
|
unsafe {
|
|
|
- $crate::c_str::CStr::from_ptr(
|
|
|
- concat!($lit, "\0").as_ptr() as *const $crate::platform::types::c_char
|
|
|
+ $crate::c_str::CStr::from_bytes_with_nul_unchecked(
|
|
|
+ concat!($lit, "\0").as_bytes()
|
|
|
)
|
|
|
}
|
|
|
};
|