fcl-db: when moving odd number bytes from blob stream into widestring allocate sufficient space. (f.e. if Len=1 then Len div 2 = 0)

git-svn-id: trunk@22995 -
This commit is contained in:
lacak 2012-11-16 12:37:53 +00:00
parent e370303fda
commit ffefefc1dc

View File

@ -2729,7 +2729,7 @@ begin
With Stream do
try
Len := Size;
SetLength(Result,Len div 2);
SetLength(Result, (Len+1) div 2);
if Len > 0 then
ReadBuffer(Result[1] ,Len);
finally