Browse Source

* cleanup by Marco Borsari (borsa77)

git-svn-id: trunk@6794 -
Tomas Hajny 18 years ago
parent
commit
374e759169
1 changed files with 3 additions and 5 deletions
  1. 3 5
      rtl/go32v2/dos.pp

+ 3 - 5
rtl/go32v2/dos.pp

@@ -189,11 +189,9 @@ var
     ls : longint;
     ls : longint;
   begin
   begin
      paste_to_dos:=false;
      paste_to_dos:=false;
-     if current_dos_buffer_pos+length(src)+3>transfer_buffer+tb_size then
-      RunError(217);
-
      ls:=Length(src)-n;
      ls:=Length(src)-n;
-
+     if current_dos_buffer_pos+ls+3>transfer_buffer+tb_size then
+      RunError(217);
      getmem(c,ls+3);
      getmem(c,ls+3);
      move(src[n],c^,ls+1);
      move(src[n],c^,ls+1);
      if cr then
      if cr then
@@ -575,7 +573,7 @@ end;
 
 
 procedure findfirst(const path : pathstr;attr : word;var f : searchRec);
 procedure findfirst(const path : pathstr;attr : word;var f : searchRec);
 var
 var
-  path0 : array[0..256] of char;
+  path0 : array[0..255] of char;
 begin
 begin
   doserror:=0;
   doserror:=0;
   strpcopy(path0,path);
   strpcopy(path0,path);