Pārlūkot izejas kodu

* make ansistring unique before starting to change it using a pchar

git-svn-id: trunk@23055 -
Jonas Maebe 12 gadi atpakaļ
vecāks
revīzija
d749ac5354
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      compiler/cfileutl.pas

+ 2 - 0
compiler/cfileutl.pas

@@ -708,6 +708,8 @@ end;
         P: PChar;
         P: PChar;
       begin
       begin
         Result := s;
         Result := s;
+        { make result unique since we're going to change it via a pchar }
+        uniquestring(result);
         L := Length(Result);
         L := Length(Result);
         if L=0 then
         if L=0 then
           exit;
           exit;