From 23b2eb2573f16ec28ffa250fcf3c6d332c1e8319 Mon Sep 17 00:00:00 2001
From: Peter Limkilde Svendsen <peter.limkilde@gmail.com>
Date: Sun, 23 Aug 2020 21:40:32 +0200
Subject: [PATCH] Avoid assuming c_char is i8

---
 src/header/time/mod.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs
index b5c7aa2d..0ceb776f 100644
--- a/src/header/time/mod.rs
+++ b/src/header/time/mod.rs
@@ -72,7 +72,7 @@ pub struct sigevent;
 
 #[no_mangle]
 pub unsafe extern "C" fn asctime(timeptr: *const tm) -> *mut c_char {
-    asctime_r(timeptr, &mut ASCTIME as *mut [i8; 26] as *mut i8)
+    asctime_r(timeptr, ASCTIME.as_mut_ptr().cast())
 }
 
 #[no_mangle]
-- 
GitLab