diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:16:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:16:26 -0400 |
commit | 7be17fd779db1ee2a20064bdf3b4a8f5da3eb968 (patch) | |
tree | 4408ceac022ed5370f2eb4b57408bbc7050697c4 /src/accum.cc | |
parent | 5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6 (diff) | |
download | fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.gz fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.bz2 fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.zip |
Corrections to the way error strings are generated
Diffstat (limited to 'src/accum.cc')
-rw-r--r-- | src/accum.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/accum.cc b/src/accum.cc index 62e36deb..55f5f0a4 100644 --- a/src/accum.cc +++ b/src/accum.cc @@ -40,8 +40,6 @@ std::streamsize straccbuf::xsputn(const char * s, std::streamsize num) if (index == 0) { // The first item received is the format string str = std::string(s, num); - index++; - return num; } else { std::ostringstream buf; @@ -68,9 +66,9 @@ std::streamsize straccbuf::xsputn(const char * s, std::streamsize num) buf << std::string(s, num); str = buf.str(); - index++; - return num; } + index++; + return num; } } // namespace ledger |