mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 04:10:19 +02:00
* properly (but silently) truncate parameters passed via environment
variables git-svn-id: trunk@5921 -
This commit is contained in:
parent
d1c351462d
commit
cbba170e61
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user