* Patch from Jesus Reyes with better fix for r8726

git-svn-id: trunk@8728 -
This commit is contained in:
joost 2007-10-03 08:26:43 +00:00
parent 7d6a23090c
commit fae59501a7

View File

@ -1082,6 +1082,7 @@ begin
else if FTransliterate then
begin
DataSet.Translate(@AValue[1],Buf,True);
Buf[DataSize-1] := #0;
SetData(@buf);
end
else
@ -1090,7 +1091,7 @@ begin
// the whole buffer-length in SetData. (See bug 8477)
Buf := AValue;
// If length(AValue) > Datasize the buffer isn't terminated properly
Buf[DataSize] := #0;
Buf[DataSize-1] := #0;
SetData(@Buf);
end;
end;