mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 05:30:37 +01:00
* insure that env variable is only truncated if more than 255 chars after the equal sign
git-svn-id: trunk@6065 -
This commit is contained in:
parent
2c09c499ab
commit
4bd7803e00
@ -806,7 +806,9 @@ begin
|
||||
i:=pos('=',s);
|
||||
if upcase(copy(s,1,i-1))=upcase(envvar) then
|
||||
begin
|
||||
getenv:=copy(s,i+1,length(s)-i);
|
||||
{ getenv:=copy(s,i+1,length(s)-i);
|
||||
this limits the size to 255-(i+1) }
|
||||
getenv:=strpas(hp+i+1);
|
||||
break;
|
||||
end;
|
||||
{ next string entry}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user