mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 16:45:56 +02:00
Copy checks index now for negative values.
This commit is contained in:
parent
7ed5f5cc10
commit
f627b90eaa
@ -458,6 +458,8 @@ begin
|
||||
Size:=Length(S)-Index;
|
||||
If Size>0 then
|
||||
begin
|
||||
If Index<0 Then
|
||||
Index:=0;
|
||||
ResultAddress:=Pointer(NewAnsiString (Size));
|
||||
if ResultAddress<>Nil then
|
||||
begin
|
||||
@ -782,7 +784,10 @@ end;
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.26 1999-05-31 20:37:39 peter
|
||||
Revision 1.27 1999-06-05 20:48:56 michael
|
||||
Copy checks index now for negative values.
|
||||
|
||||
Revision 1.26 1999/05/31 20:37:39 peter
|
||||
* fixed decr_ansistr which didn't set s to nil
|
||||
|
||||
Revision 1.25 1999/05/17 22:41:24 florian
|
||||
|
Loading…
Reference in New Issue
Block a user