- Fixed crash bug on Linux where Command::next_mod_group just walked off
  the end of a vector.
This commit is contained in:
Paul Beckingham 2011-09-11 11:46:19 -04:00
parent 6e649f3f45
commit dcc0ab19c2

View file

@ -555,8 +555,9 @@ bool Command::next_mod_group (const A3& input, Arg& arg, unsigned int& pos)
if (arg._type == Arg::type_date &&
arg._category == Arg::cat_attr)
{
while (input[pos]._type == Arg::type_duration ||
input[pos]._category == Arg::cat_op)
while (pos < input.size () &&
(input[pos]._type == Arg::type_duration ||
input[pos]._category == Arg::cat_op))
{
arg._raw += " " + input[pos++]._raw;
}