X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..83e12528b0f7fde3d3fc54fe56626c2043c39280:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index bdd03aaa25..78e34fee4a 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -63,9 +63,9 @@ RecordTrace parseRecordTrace(const char* data) const char* current = data; while (*current) { - simgrid::mc::Transition item; int count = sscanf(current, "%d/%d", &item.pid_, &item.argument_); + if(count != 2 && count != 1) throw std::invalid_argument("Could not parse record path"); res.push_back(item);