stdlib: increase string length for copy and insert

This commit is contained in:
slederer 2025-01-15 01:55:58 +01:00
parent f18176e3fa
commit 3c8525dcca
2 changed files with 4 additions and 4 deletions

View file

@ -402,7 +402,7 @@ begin
GetCurTimestamp := GetTimestamp(now);
end;
function copy(s:string;index,count:integer):string;
function copy(s:string[256];index,count:integer):string[256];
var len:integer;
begin
copy := '';
@ -416,7 +416,7 @@ begin
end;
end;
procedure insert(ins: string; var dest: string; position:integer);
procedure insert(ins:string[256]; var dest:string[256]; position:integer);
var i,count,from,to_:integer;
begin
if position < 1 then position := 1;