소스 검색

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

git-svn-id: trunk@23055 -
Jonas Maebe 12 년 전
부모
커밋
d749ac5354
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;