diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-12-11 16:36:19 -0600 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-12-11 16:36:19 -0600 |
commit | 8fb7ea47f4f21cd40b8e4fca069cd1910a79377d (patch) | |
tree | 49d55bc15cc435ab376b0ba6d2ce5cc92161228a | |
parent | b960eec5201044a07154262a0d51829904ec8e98 (diff) | |
parent | a013a73b26f2274152ebf7f0ba7af17c2e17a4c8 (diff) | |
download | fork-ledger-8fb7ea47f4f21cd40b8e4fca069cd1910a79377d.tar.gz fork-ledger-8fb7ea47f4f21cd40b8e4fca069cd1910a79377d.tar.bz2 fork-ledger-8fb7ea47f4f21cd40b8e4fca069cd1910a79377d.zip |
Merge pull request #339 from adrianlang/patch-1
Fix off by one error in textual.cc
-rw-r--r-- | src/textual.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc index 156e2b9c..b113c746 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -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; } |