소스 검색

* fixed (harmless) range error when expanding ~

git-svn-id: trunk@43559 -
Jonas Maebe 5 년 전
부모
커밋
0f46207776
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/inc/fexpand.inc

+ 1 - 1
rtl/inc/fexpand.inc

@@ -186,7 +186,7 @@ begin
 {$IFDEF FPC_FEXPAND_TILDE}
     {Replace ~/ with $HOME/}
     if (Length (Pa) >= 1) and (Pa [1] = '~') and
-                      ((Pa [2] = DirectorySeparator) or (Length (Pa) = 1)) then
+                      ((Length (Pa) = 1) or (Pa [2] = DirectorySeparator)) then
         begin
  {$IFDEF FPC_FEXPAND_SYSUTILS}
    {$IFDEF SYSUTILSUNICODE}