Merge pull request #339 from adrianlang/patch-1
Fix off by one error in textual.cc
This commit is contained in:
commit
8fb7ea47f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue