mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-07 06:39:41 +01:00
amunits: Read()ing to a PChar is no longer supported, because it's unsafe
git-svn-id: trunk@27576 -
This commit is contained in:
parent
826c77831b
commit
fabdebf9c6
@ -759,9 +759,9 @@ begin
|
|||||||
{ I don't want end of lines here (for use with amiga listviews)
|
{ I don't want end of lines here (for use with amiga listviews)
|
||||||
just change this if you need newline characters.
|
just change this if you need newline characters.
|
||||||
}
|
}
|
||||||
Read(Inf, buffer);
|
Read(Inf, buf);
|
||||||
tempnode := AddNewNode(thelist,buffer);
|
tempnode := AddNewNode(thelist,buffer);
|
||||||
Readln(inf, buffer);
|
Readln(inf, buf);
|
||||||
end;
|
end;
|
||||||
CLose(Inf);
|
CLose(Inf);
|
||||||
FileToList := true;
|
FileToList := true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user