From 3d03b021279783ae83f0db5997b1fe5920717df1 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 14 Dec 2012 06:29:38 +0000 Subject: [PATCH] ok --- Common/onelab.h | 2 +- utils/solvers/c++/onelab.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/onelab.h b/Common/onelab.h index 1165e9d6f0..5c8065803a 100644 --- a/Common/onelab.h +++ b/Common/onelab.h @@ -148,7 +148,7 @@ namespace onelab{ std::string::size_type last = msg.find_first_of(separator, first); std::string next(""); if(last == std::string::npos){ - next = msg.substr(first, last - first); + next = msg.substr(first); first = last; } else if(first == last){ diff --git a/utils/solvers/c++/onelab.h b/utils/solvers/c++/onelab.h index 80742674aa..5c8065803a 100644 --- a/utils/solvers/c++/onelab.h +++ b/utils/solvers/c++/onelab.h @@ -146,7 +146,7 @@ namespace onelab{ { if(first == std::string::npos) return ""; std::string::size_type last = msg.find_first_of(separator, first); - std::string next; + std::string next(""); if(last == std::string::npos){ next = msg.substr(first); first = last; -- GitLab