diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-23 22:50:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-23 22:50:40 +0100 |
| commit | 8c7a308c03e4b4196b4e2379a26d432b100ae2b1 (patch) | |
| tree | 605c8b62f56c5f9be2ff77161eb18ac372083a35 /src/lib/log.cc | |
| parent | 04acfa42cdffd5938358847ebee822399ef978e6 (diff) | |
| parent | a6d6a794b28c3b3e6679f01c1890f396453eb5ac (diff) | |
Merge master.
Diffstat (limited to 'src/lib/log.cc')
| -rw-r--r-- | src/lib/log.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/log.cc b/src/lib/log.cc index 4de6bd874..5e8277a23 100644 --- a/src/lib/log.cc +++ b/src/lib/log.cc @@ -26,6 +26,7 @@ #include "log.h" #include "cross.h" #include "config.h" +#include "safe_stringstream.h" #include "i18n.h" @@ -63,7 +64,7 @@ Log::log (string message, int type) time (&t); string a = ctime (&t); - stringstream s; + SafeStringStream s; s << a.substr (0, a.length() - 1) << N_(": "); if (type & TYPE_ERROR) { @@ -90,7 +91,7 @@ Log::microsecond_log (string m, int t) struct timeval tv; gettimeofday (&tv, 0); - stringstream s; + SafeStringStream s; s << tv.tv_sec << N_(":") << tv.tv_usec << N_(" ") << m; do_log (s.str ()); } |
