Skip to content

Commit

Permalink
Fixed Mantis #6608: Bug in TJclAnsiStrings.SetDelimitedText
Browse files Browse the repository at this point in the history
  • Loading branch information
ahausladen committed Dec 27, 2017
1 parent ff92a12 commit d0c0a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jcl/source/common/JclAnsiStrings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ procedure TJclAnsiStrings.SetDelimitedText(const Value, ADelimiter: AnsiString;
QuoteCharCount := 0;
LastStart := Index + 1;
end;
if (Index = ValueLength) and (LastStart < ValueLength) then
if (Index = ValueLength) and (LastStart <= ValueLength) then
begin
if StrictDelimiter then
Add(Copy(Value, LastStart, ValueLength - LastStart + 1))
Expand Down

0 comments on commit d0c0a34

Please sign in to comment.