mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 04:09:20 +02:00
* fixed (harmless) range error when expanding ~
git-svn-id: trunk@43559 -
This commit is contained in:
parent
cf203a6590
commit
0f46207776
@ -186,7 +186,7 @@ begin
|
|||||||
{$IFDEF FPC_FEXPAND_TILDE}
|
{$IFDEF FPC_FEXPAND_TILDE}
|
||||||
{Replace ~/ with $HOME/}
|
{Replace ~/ with $HOME/}
|
||||||
if (Length (Pa) >= 1) and (Pa [1] = '~') and
|
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
|
begin
|
||||||
{$IFDEF FPC_FEXPAND_SYSUTILS}
|
{$IFDEF FPC_FEXPAND_SYSUTILS}
|
||||||
{$IFDEF SYSUTILSUNICODE}
|
{$IFDEF SYSUTILSUNICODE}
|
||||||
|
Loading…
Reference in New Issue
Block a user