mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 02:09:14 +02:00
* Patch from reporter of bug ID #13924 to fix arguments with spaces if no argv is declared.
git-svn-id: trunk@13246 -
This commit is contained in:
parent
17c4dc5feb
commit
0021183eb6
@ -91,6 +91,9 @@ begin
|
|||||||
s:='';
|
s:='';
|
||||||
for i:=1 to paramcount do
|
for i:=1 to paramcount do
|
||||||
begin
|
begin
|
||||||
|
if Pos(' ', paramstr(i)) > 0 then
|
||||||
|
s := s + '"' + paramstr(i) + '" '
|
||||||
|
else
|
||||||
s:=s+paramstr(i)+' ';
|
s:=s+paramstr(i)+' ';
|
||||||
end;
|
end;
|
||||||
s:=s+#0;
|
s:=s+#0;
|
||||||
|
Loading…
Reference in New Issue
Block a user