Merge pull request #339 from adrianlang/patch-1

Fix off by one error in textual.cc
This commit is contained in:
Martin Michlmayr 2014-12-11 16:36:19 -06:00
commit 8fb7ea47f4

View file

@ -1816,7 +1816,7 @@ xact_t * instance_t::parse_xact(char * line,
char *q = p - 1;
while (q > next && std::isspace(*q))
--q;
if (q > next)
if (q >= next)
*(q + 1) = '\0';
break;
}