* Fix one character being eaten at end of input string

git-svn-id: trunk@40926 -
This commit is contained in:
michael 2019-01-20 11:11:58 +00:00
parent 1895b3ce37
commit fd6fbed094

View File

@ -628,7 +628,8 @@ var
l := CurPos - Start;
if l <= 0 then
exit;
s:=copy(FPCCommandLine,Start,l);
s:=Trim(copy(FPCCommandLine,Start,l));
Writeln('Examining >>',S,'<<');
if (s[1] = '-') and (length(s)>1) then
begin
case s[2] of
@ -747,6 +748,7 @@ begin
end;
Inc(CurPos);
end;
Inc(CurPos);
ProcessCmdLinePart;
end;