mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 17:59:09 +02:00
* 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:
parent
c767df348f
commit
7d6a23090c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user