summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/llcommon/llleap.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/llcommon/llleap.cpp b/indra/llcommon/llleap.cpp
index dddf1286ac..beb7fa8333 100644
--- a/indra/llcommon/llleap.cpp
+++ b/indra/llcommon/llleap.cpp
@@ -230,10 +230,7 @@ public:
// childout (well, up to a max length) to log what was wrong.
LLProcess::ReadPipe::size_type
readlen((std::min)(childout.size(), LLProcess::ReadPipe::size_type(80)));
- std::vector<char> buffer(readlen + 1);
- childstream.read(&buffer[0], readlen);
- buffer[childstream.gcount()] = '\0';
- bad_protocol(STRINGIZE(expect << char(colon) << &buffer[0]));
+ bad_protocol(STRINGIZE(expect << char(colon) << childout.read(readlen)));
}
else
{