From de39574e89cc72aef157d10d451fac1f78af37c6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 17 Aug 2004 16:46:24 -0400 Subject: fixed a memory corruption bug stemming from not using an input iterator --- main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 756fe8b4..bf82d12a 100644 --- a/main.cc +++ b/main.cc @@ -14,6 +14,7 @@ using namespace ledger; #include #include #include +#include #include #include #include @@ -127,11 +128,9 @@ int main(int argc, char * argv[], char * envp[]) journal->sources.pop_front(); // remove cache_file strings_list exceptions; -#if 0 std::set_difference(journal->sources.begin(), journal->sources.end(), config->files.begin(), config->files.end(), - exceptions.begin()); -#endif + std::back_insert_iterator(exceptions)); if (entry_count == 0 || exceptions.size() > 0) { journal.reset(new journal_t); -- cgit v1.2.3