mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:49:12 +02:00
* Patch from Jesus Reyes with better fix for r8726
git-svn-id: trunk@8728 -
This commit is contained in:
parent
7d6a23090c
commit
fae59501a7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user