ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/runtime/IBCustomDataSet.pas
(Generate patch)

Comparing ibx/trunk/runtime/IBCustomDataSet.pas (file contents):
Revision 57 by tony, Wed Mar 8 11:20:46 2017 UTC vs.
Revision 58 by tony, Sat Mar 11 11:14:14 2017 UTC

# Line 1208 | Line 1208 | var
1208    s: RawByteString;
1209   begin
1210    Buffer := nil;
1211 <  IBAlloc(Buffer, 0, Size + 1);
1211 >  IBAlloc(Buffer, 0, DataSize);
1212    try
1213      s := Value;
1214      if StringCodePage(s) <> CodePage then
1215        SetCodePage(s,CodePage,CodePage<>CP_NONE);
1216 <    StrLCopy(Buffer, PChar(s), Size);
1216 >    StrLCopy(Buffer, PChar(s), DataSize-1);
1217      if Transliterate then
1218        DataSet.Translate(Buffer, Buffer, True);
1219      SetData(Buffer);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines