summary refs log tree commit diff stats
path: root/nim/nos.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/nos.pas')
-rw-r--r--nim/nos.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/nim/nos.pas b/nim/nos.pas
index 73b17ae58..4926c99b0 100644
--- a/nim/nos.pas
+++ b/nim/nos.pas
@@ -123,7 +123,7 @@ procedure createDir(const dir: string);
 var
   i: int;
 begin
-  for i := 1 to length(dir) do begin
+  for i := 2 to length(dir) do begin
     if dir[i] in [sep, altsep] then sysutils.createDir(ncopy(dir, 1, i-1));
   end;
   sysutils.createDir(dir);