diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-11-24 13:15:54 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-11-24 13:15:54 +0000 |
commit | 847fff6776fd81c91a8073d11d9e6d7d681f9a2f (patch) | |
tree | e9387291e7134dce08287f2a1a2b916ad9537ffc /compiler | |
parent | 3f50b28179a668711845ac89f2a41b938be1a547 (diff) | |
download | fpc-847fff6776fd81c91a8073d11d9e6d7d681f9a2f.tar.gz |
* make ansistring unique before starting to change it using a pchar
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23055 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cfileutl.pas | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/cfileutl.pas b/compiler/cfileutl.pas index 58feb69ead..dfbe5fc88d 100644 --- a/compiler/cfileutl.pas +++ b/compiler/cfileutl.pas @@ -708,6 +708,8 @@ end; P: PChar; begin Result := s; + { make result unique since we're going to change it via a pchar } + uniquestring(result); L := Length(Result); if L=0 then exit; |