* 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:
pierre 2007-01-19 03:29:40 +00:00
parent 2c09c499ab
commit 4bd7803e00

View File

@ -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}