* 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 else if FTransliterate then
begin begin
DataSet.Translate(@AValue[1],Buf,True); DataSet.Translate(@AValue[1],Buf,True);
Buf[DataSize-1] := #0;
SetData(@buf); SetData(@buf);
end end
else else
@ -1090,7 +1091,7 @@ begin
// 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 // If length(AValue) > Datasize the buffer isn't terminated properly
Buf[DataSize] := #0; Buf[DataSize-1] := #0;
SetData(@Buf); SetData(@Buf);
end; end;
end; end;