summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-26 23:48:31 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-26 23:48:31 -0400
commitf8a62c444f070b5e7f1ed00a2a322d01da729775 (patch)
treee5ec1becde3b9f05d2fe6b1b1b49cb2732a6960f /journal.cc
parentf32f698d7f097234ebabe725e8f8aaa1fa740753 (diff)
downloadfork-ledger-f8a62c444f070b5e7f1ed00a2a322d01da729775.tar.gz
fork-ledger-f8a62c444f070b5e7f1ed00a2a322d01da729775.tar.bz2
fork-ledger-f8a62c444f070b5e7f1ed00a2a322d01da729775.zip
made several of the buffers used non-static
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/journal.cc b/journal.cc
index a949d7a4..4b33361d 100644
--- a/journal.cc
+++ b/journal.cc
@@ -242,9 +242,11 @@ account_t * account_t::find_account(const std::string& name,
if (i != accounts.end())
return (*i).second;
- static char buf[256];
+ char buf[256];
std::string::size_type sep = name.find(':');
+ assert(sep < 256);
+
const char * first, * rest;
if (sep == std::string::npos) {
first = name.c_str();