mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 10:50:14 +02:00
* remove also 255 limit for ExtractFileExt
git-svn-id: trunk@2033 -
This commit is contained in:
parent
5008bb74b1
commit
9b0c8269bc
@ -74,7 +74,7 @@ var i: longint;
|
||||
begin
|
||||
I := Length(FileName);
|
||||
while (I > 0) and not (FileName[I] in ['/', '\', ':']) do Dec(I);
|
||||
Result := Copy(FileName, I + 1, maxint);
|
||||
Result := Copy(FileName, I + 1, MaxInt);
|
||||
end;
|
||||
|
||||
function ExtractFileExt(const FileName: string): string;
|
||||
@ -83,7 +83,7 @@ begin
|
||||
I := Length(FileName);
|
||||
while (I > 0) and not (FileName[I] in ['.', '/', '\', ':']) do Dec(I);
|
||||
if (I > 0) and (FileName[I] = '.') then
|
||||
Result := Copy(FileName, I, 255)
|
||||
Result := Copy(FileName, I, MaxInt)
|
||||
else Result := '';
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user