Fix truncated log timestamps in at least some cases.
authorCarl Hetherington <cth@carlh.net>
Sun, 24 Jan 2016 22:10:39 +0000 (22:10 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 24 Jan 2016 22:10:39 +0000 (22:10 +0000)
src/lib/log_entry.cc

index d29b56747306f0b9a23aff6e3b49c0f678c9d659..99443e34af54fbf55165630c0e77fba811677355 100644 (file)
@@ -50,7 +50,7 @@ LogEntry::get () const
                struct tm* t = localtime (&sec);
                strftime (buffer, 64, "%c", t);
                string a (buffer);
                struct tm* t = localtime (&sec);
                strftime (buffer, 64, "%c", t);
                string a (buffer);
-               s << a.substr (0, a.length() - 1) << N_(": ");
+               s << a << N_(": ");
        }
 
        if (_type & TYPE_ERROR) {
        }
 
        if (_type & TYPE_ERROR) {