ordinary malloc doesn't work, so malloc2

This commit is contained in:
Kirill Kranz 2024-10-05 01:25:18 +02:00
parent 94e399faf7
commit fe6e7430ce

View File

@ -531,7 +531,7 @@ implementation
function strdup(p: pchar): pchar;
begin
strdup:= malloc(strlen(p) + 1);
strdup:= malloc2(strlen(p) + 1);
strcpy(strdup, p);
end;