* Terminate strings in recordbuffer if size of supplied string is larger then the field-size

git-svn-id: trunk@8726 -
This commit is contained in:
joost 2007-10-02 21:01:13 +00:00
parent c767df348f
commit 7d6a23090c

View File

@ -1089,6 +1089,8 @@ begin
// The data is copied into the buffer, since some TDataset descendents copy // The data is copied into the buffer, since some TDataset descendents copy
// the whole buffer-length in SetData. (See bug 8477) // the whole buffer-length in SetData. (See bug 8477)
Buf := AValue; Buf := AValue;
// If length(AValue) > Datasize the buffer isn't terminated properly
Buf[DataSize] := #0;
SetData(@Buf); SetData(@Buf);
end; end;
end; end;