Browse Source

* removed 255 char limit in extractfilename

git-svn-id: trunk@2032 -
marco 19 years ago
parent
commit
5008bb74b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/fina.inc

+ 1 - 1
rtl/objpas/sysutils/fina.inc

@@ -74,7 +74,7 @@ var i: longint;
 begin
 begin
 I := Length(FileName);
 I := Length(FileName);
 while (I > 0) and not (FileName[I] in ['/', '\', ':']) do Dec(I);
 while (I > 0) and not (FileName[I] in ['/', '\', ':']) do Dec(I);
-Result := Copy(FileName, I + 1, 255);
+Result := Copy(FileName, I + 1, maxint);
 end;
 end;
 
 
 function ExtractFileExt(const FileName: string): string;
 function ExtractFileExt(const FileName: string): string;