mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:29:19 +02:00
* Small optimisation in strnew from Luiz Americo (bug ID 26365)
git-svn-id: trunk@28005 -
This commit is contained in:
parent
f1bd08acce
commit
a0f4ff655e
@ -61,7 +61,7 @@ begin
|
|||||||
len:=strlen(p)+1;
|
len:=strlen(p)+1;
|
||||||
Result:=StrAlloc(Len);
|
Result:=StrAlloc(Len);
|
||||||
if Result<>nil then
|
if Result<>nil then
|
||||||
strmove(Result,p,len);
|
move(p^,Result^,len);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user