mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:29:14 +02:00
ordinary malloc doesn't work, so malloc2
This commit is contained in:
parent
94e399faf7
commit
fe6e7430ce
@ -531,7 +531,7 @@ implementation
|
|||||||
|
|
||||||
function strdup(p: pchar): pchar;
|
function strdup(p: pchar): pchar;
|
||||||
begin
|
begin
|
||||||
strdup:= malloc(strlen(p) + 1);
|
strdup:= malloc2(strlen(p) + 1);
|
||||||
strcpy(strdup, p);
|
strcpy(strdup, p);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user