X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fupdate.cc;h=0146df48430deff9a410763e6a46bf7894b9af4d;hb=8c7a308c03e4b4196b4e2379a26d432b100ae2b1;hp=44ecbb232c26b03214f23d3191c54fedd9a9071a;hpb=94201bd2a5a4cb391b7f2bdeba56b928fed7cfe1;p=dcpomatic.git diff --git a/src/lib/update.cc b/src/lib/update.cc index 44ecbb232..0146df484 100644 --- a/src/lib/update.cc +++ b/src/lib/update.cc @@ -18,7 +18,6 @@ */ #include -#include #include #include #include @@ -26,6 +25,7 @@ #include "update.h" #include "version.h" #include "ui_signaller.h" +#include "safe_stringstream.h" #define BUFFER_SIZE 1024 @@ -113,10 +113,9 @@ UpdateChecker::thread () /* Parse the reply */ _buffer[_offset] = '\0'; - stringstream s; - s << _buffer; + string s (_buffer); cxml::Document doc ("Update"); - doc.read_stream (s); + doc.read_string (s); { boost::mutex::scoped_lock lm (_data_mutex);