Browse Source

* fix error as reported in webbug 2373

pierre 22 năm trước cách đây
mục cha
commit
8caf047fa8
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      docs/sysutex/ex45.pp

+ 3 - 3
docs/sysutex/ex45.pp

@@ -8,15 +8,15 @@ Uses sysutils;
 Var Dirs : Array[0..127] of pchar;
     I,Count : longint;
     Dir,NewDir : String;
- 
+
 Begin
   Dir:=GetCurrentDir;
   Writeln ('Dir : ',Dir);
   NewDir:='';
   count:=GetDirs(Dir,Dirs);
-  For I:=0 to Count do
+  For I:=0 to Count-1 do
     begin
     NewDir:=NewDir+'/'+StrPas(Dirs[I]);
     Writeln (NewDir);
     end;
-End.
+End.