diff options
Diffstat (limited to 'journal.cc')
-rw-r--r-- | journal.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |