|
@@ -766,18 +766,15 @@ end;
|
|
|
|
|
|
|
|
|
|
function tppufile.getstring:string;
|
|
function tppufile.getstring:string;
|
|
-var
|
|
|
|
- s : string;
|
|
|
|
begin
|
|
begin
|
|
- s[0]:=chr(getbyte);
|
|
|
|
- if entryidx+length(s)>entry.size then
|
|
|
|
|
|
+ result[0]:=chr(getbyte);
|
|
|
|
+ if entryidx+length(result)>entry.size then
|
|
begin
|
|
begin
|
|
error:=true;
|
|
error:=true;
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|
|
- ReadData(s[1],length(s));
|
|
|
|
- getstring:=s;
|
|
|
|
- inc(entryidx,length(s));
|
|
|
|
|
|
+ ReadData(result[1],length(result));
|
|
|
|
+ inc(entryidx,length(result));
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|