diff options
Diffstat (limited to 'UCoreUtils.pas')
| -rw-r--r-- | UCoreUtils.pas | 4 |
1 files changed, 2 insertions, 2 deletions
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.']); |
