summaryrefslogtreecommitdiff
path: root/src/stl_binary_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
commite245921978ee9c7c6e025c7416bdf808d789fa44 (patch)
tree17a6c18cc1d0294f7e87d7c6638d4cc23f81b7e5 /src/stl_binary_writer.cc
parentd7e0ebee4d94f10a8b80c1e61bf7b162c6a1ac12 (diff)
Use locked_sstream.
Diffstat (limited to 'src/stl_binary_writer.cc')
-rw-r--r--src/stl_binary_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc
index aa8943c..f1afa2c 100644
--- a/src/stl_binary_writer.cc
+++ b/src/stl_binary_writer.cc
@@ -72,7 +72,7 @@ put_string (char* p, unsigned int n, string s)
static void
put_int_as_string (char* p, int v, unsigned int n)
{
- std::stringstream s;
+ locked_stringstream s;
/* Be careful to ensure we get no thousands separators */
s.imbue (std::locale::classic ());
s << setw (n) << setfill ('0');