From 6fc3bccb45cc844b7439d30aab3170861bd31bac Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 13 Dec 2012 22:52:25 +0000
Subject: [PATCH] voodoo

---
 Common/onelab.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Common/onelab.h b/Common/onelab.h
index 80742674aa..1165e9d6f0 100644
--- a/Common/onelab.h
+++ b/Common/onelab.h
@@ -146,9 +146,9 @@ 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);
+        next = msg.substr(first, last - first);
         first = last;
       }
       else if(first == last){
-- 
GitLab