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 d29b567..99443e3 100644 (file)
@@ -50,7 +50,7 @@ LogEntry::get () const
                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) {