From 937c9c7bd1a96ca24ecae71695f12bd25641c14c Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Sat, 13 Oct 2012 20:03:44 +0200 Subject: ignore extra fields when converting csv files This fixes bug #736. --- src/csv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/csv.cc') diff --git a/src/csv.cc b/src/csv.cc index aca69307..4992372a 100644 --- a/src/csv.cc +++ b/src/csv.cc @@ -166,7 +166,7 @@ xact_t * csv_reader::read_xact(bool rich_data) string total; string field; - while (instr.good() && ! instr.eof()) { + while (instr.good() && ! instr.eof() && n < index.size()) { field = read_field(instr); switch (index[n]) { -- cgit v1.2.3