diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2025-11-28 22:01:20 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2025-11-28 22:01:20 +0100 |
| commit | d4564a0007d1b248af07d5a29a4bd9ccedb61fde (patch) | |
| tree | 600da6e36cbcfca425d0b3439df823c667d58d47 /UCoreWorkers.pas | |
| parent | 69dd2b81de3bcbb955669f7937f3844b86467849 (diff) | |
| download | tuxcmd-d4564a0007d1b248af07d5a29a4bd9ccedb61fde.tar.xz | |
Misc. ULibc fixes
Diffstat (limited to 'UCoreWorkers.pas')
| -rw-r--r-- | UCoreWorkers.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UCoreWorkers.pas b/UCoreWorkers.pas index 8e2207e..694b7bf 100644 --- a/UCoreWorkers.pas +++ b/UCoreWorkers.pas @@ -1062,7 +1062,7 @@ var DefResponse: integer; // Global variables for this function end; BSize := DestEngine.GetBlockSize; - Buffer := malloc(BSize); + Buffer := libc_malloc(BSize); if Buffer = nil then begin g_set_error(Error, TUXCMD_ERROR, gint(TUXCMD_ERROR_ALLOC_FAILED), '%m', []); CopyFilesWorker_ProgressFunc(Self, 0, Error^); // Memory allocation failed @@ -1728,7 +1728,7 @@ begin else MergeBlockSize := 65536*4; FreeDataItem(Stat); try - Buffer := malloc(MergeBlockSize); + Buffer := libc_malloc(MergeBlockSize); memset(Buffer, 0, MergeBlockSize); except FCancelMessage := LANGAnErrorOccuredWhileInitializingMemoryBlock; @@ -1922,7 +1922,7 @@ begin List := TList.Create; try - Buffer := malloc(SplitBlockSize); + Buffer := libc_malloc(SplitBlockSize); memset(Buffer, 0, SplitBlockSize); except FCancelMessage := LANGAnErrorOccuredWhileInitializingMemoryBlock; |
