Skip to content
Snippets Groups Projects
Commit 8dff769d authored by Oz Linden's avatar Oz Linden
Browse files

do not insert a null char into the std::string when serializing llsd notation

parent d2257711
No related branches found
No related tags found
No related merge requests found
...@@ -196,10 +196,7 @@ char* ll_pretty_print_sd(const LLSD& sd) ...@@ -196,10 +196,7 @@ char* ll_pretty_print_sd(const LLSD& sd)
std::string ll_stream_notation_sd(const LLSD& sd) std::string ll_stream_notation_sd(const LLSD& sd)
{ {
std::ostringstream stream; std::ostringstream stream;
//stream.rdbuf()->pubsetbuf(buffer, bufferSize);
stream << LLSDOStreamer<LLSDNotationFormatter>(sd); stream << LLSDOStreamer<LLSDNotationFormatter>(sd);
stream << std::ends;
return stream.str(); return stream.str();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment