* fixed copying of remaining elements

git-svn-id: trunk@7699 -
This commit is contained in:
florian 2007-06-17 09:47:05 +00:00
parent 3eaceafad3
commit ea97b8b137

View File

@ -148,7 +148,7 @@ begin
case PByte(TypeInfo)^ of
tkAstring :
begin
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
PPointer(Data)^:=nil;
end;
tkWstring :
@ -299,6 +299,9 @@ begin
copiedsize:=fpc_Copy_internal(Src+Offset,Dest+Offset,Info);
expectedoffset:=Offset+copiedsize;
end;
{ elements remaining? }
if result>expectedoffset then
move((Src+expectedoffset)^,(Dest+expectedoffset)^,Result-expectedoffset);
end;
tkDynArray:
begin