Skip to content

Commit 7537118

Browse files
committed
update to make.pas
1 parent 9d4b273 commit 7537118

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/make.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class function TLazXml.ExtractBlock(const AContent, AOpenTag: string): string;
364364
CloseTag := '</' + AOpenTag + '>';
365365
Q := PosEx(CloseTag, AContent, P);
366366
if Q = 0 then
367-
Result := Copy(AContent, P, MaxInt)
367+
Result := Copy(AContent, P, Length(AContent) - P + 1)
368368
else
369369
Result := Copy(AContent, P, Q - P + Length(CloseTag));
370370
end;
@@ -440,7 +440,7 @@ class function TLazXml.ArgsHasFuPath(const AArgs: TStrings; const APath: string)
440440
begin
441441
if not StartsText('-Fu', AArgs[I]) then
442442
Continue;
443-
ArgPath := Copy(AArgs[I], 4, MaxInt);
443+
ArgPath := Copy(AArgs[I], 4, Length(AArgs[I]) - 3);
444444
if SameText(Norm, LowerCase(ExpandFileName(ExcludeTrailingPathDelimiter(ArgPath)))) then
445445
Exit(True);
446446
end;

0 commit comments

Comments
 (0)