From f7691237f5ddde91409cfee5dab672439d3c3639 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 11 Apr 2008 12:23:19 -0700 Subject: [PATCH] -1 cuts the trailing s if the time postfix is longer than 1 char. --- src/simulator/time.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulator/time.cc b/src/simulator/time.cc index a7ec5e5f8..42700ce69 100644 --- a/src/simulator/time.cc +++ b/src/simulator/time.cc @@ -230,7 +230,7 @@ std::istream& operator>> (std::istream& is, Time & time) is.setstate (std::ios_base::failbit); return is; } - std::string trailer = value.substr(n, value.size ()-1-n); + std::string trailer = value.substr(n, value.size ()-n); std::istringstream iss; iss.str (value.substr(0, n));