mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:06:08 +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;
|
||||
begin
|
||||
strdup:= malloc(strlen(p) + 1);
|
||||
strdup:= malloc2(strlen(p) + 1);
|
||||
strcpy(strdup, p);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user