* properly (but silently) truncate parameters passed via environment

variables

git-svn-id: trunk@5921 -
This commit is contained in:
Jonas Maebe 2007-01-12 16:50:39 +00:00
parent d1c351462d
commit cbba170e61

View File

@ -1592,7 +1592,10 @@ begin
inc(pc);
{ create argument }
arglen:=pc-argstart;
hs[0]:=chr(arglen);
{$warning FIXME: silent truncation of environment parameters }
if (arglen > 255) then
arglen := 255;
setlength(hs,arglen);
move(argstart^,hs[1],arglen);
interpret_option(hs,true);
{ skip quote }