Explorar o código

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

git-svn-id: trunk@23055 -
Jonas Maebe %!s(int64=12) %!d(string=hai) anos
pai
achega
d749ac5354
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/cfileutl.pas

+ 2 - 0
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;