From d4564a0007d1b248af07d5a29a4bd9ccedb61fde Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 28 Nov 2025 22:01:20 +0100 Subject: Misc. ULibc fixes --- UCoreUtils.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'UCoreUtils.pas') diff --git a/UCoreUtils.pas b/UCoreUtils.pas index eafd8bc..3eb7282 100644 --- a/UCoreUtils.pas +++ b/UCoreUtils.pas @@ -266,7 +266,7 @@ begin 14: DateFormat := '%y/%m/%d'; // 08/06/24 else DateFormat := CustDateFormat; // Custom date format end; - Buf := malloc(255); + Buf := libc_malloc(255); memset(Buf, 0, 255); placed := strftime(Buf, 254, PChar(DateFormat), time_tm); if placed <= 0 then DebugMsg(['FormatDate: error converting date. The result will be unpredictable.']); @@ -290,7 +290,7 @@ begin 11: TimeFormat := '%H%M'; // 1311 else TimeFormat := CustTimeFormat; // Custom Time format end; - Buf := malloc(255); + Buf := libc_malloc(255); memset(Buf, 0, 255); placed := strftime(Buf, 254, PChar(TimeFormat), time_tm); if placed <= 0 then DebugMsg(['FormatDate: error converting time. The result will be unpredictable.']); -- cgit v1.2.3