diff --git a/mdl/m_fileio.pas b/mdl/m_fileio.pas index fe38574..3594cd0 100644 --- a/mdl/m_fileio.pas +++ b/mdl/m_fileio.pas @@ -247,7 +247,8 @@ Var BWrite : LongInt; FileBuf : Array[1..4096] of Char; Begin - Result := False; + Result := False; + FileMode := 66; Assign (SF, Source); {$I-} Reset(SF, 1); {$I+} @@ -366,7 +367,7 @@ Function JustFile (Str: String) : String; Var Count : Byte; Begin - For Count := Ord(Str[0]) DownTo 1 Do + For Count := Length(Str) DownTo 1 Do If (Str[Count] = '/') or (Str[Count] = '\') Then Begin Delete (Str, 1, Count); Break; diff --git a/mdl/m_socket_class.pas b/mdl/m_socket_class.pas index f477702..8464f5a 100644 --- a/mdl/m_socket_class.pas +++ b/mdl/m_socket_class.pas @@ -174,9 +174,6 @@ Begin End; Procedure TSocketClass.BufFlush; -Var - Count : LongInt; - Start : LongInt; Begin If FOutBufPos > 0 Then Begin If FTelnetClient or FTelnetServer Then