Fix off by one error in textual.cc
This fixes parsing of transactions with single-character payees and comments.
This commit is contained in:
parent
b960eec520
commit
a013a73b26
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