Browse Source

--- Merging r35520 into '.':
U packages/fcl-net/src/netdb.pp
--- Recording mergeinfo for merge of r35520 into '.':
U .

# revisions: 35520

git-svn-id: branches/fixes_3_0@36074 -

marco 8 years ago
parent
commit
c361439bbd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/fcl-net/src/netdb.pp

+ 4 - 0
packages/fcl-net/src/netdb.pp

@@ -329,12 +329,16 @@ Var
   L : String;
   L : String;
   A : THostAddr;
   A : THostAddr;
   T : PHostListEntry;
   T : PHostListEntry;
+  B : Array of byte;
+  FS : Int64;
   
   
 begin
 begin
   Result:=Nil;
   Result:=Nil;
   Assign(F,FileName);
   Assign(F,FileName);
   {$push}{$I-}
   {$push}{$I-}
   Reset(F);
   Reset(F);
+  SetLength(B,65355);
+  SetTextBuf(F,B[0],65355);
   {$pop};
   {$pop};
   If (IOResult<>0) then
   If (IOResult<>0) then
     Exit;
     Exit;