stdlib: increase string length for copy and insert
This commit is contained in:
parent
f18176e3fa
commit
3c8525dcca
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue