소스 검색

amunits: Read()ing to a PChar is no longer supported, because it's unsafe

git-svn-id: trunk@27576 -
Károly Balogh 11 년 전
부모
커밋
fabdebf9c6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/amunits/src/utilunits/linklist.pas

+ 2 - 2
packages/amunits/src/utilunits/linklist.pas

@@ -759,9 +759,9 @@ begin
       { I don't want end of lines here (for use with amiga listviews)
         just change this if you need newline characters.
       }
-         Read(Inf, buffer);
+         Read(Inf, buf);
          tempnode := AddNewNode(thelist,buffer);
-         Readln(inf, buffer);
+         Readln(inf, buf);
       end;
       CLose(Inf);
       FileToList := true;