summaryrefslogtreecommitdiff
path: root/indra/llplugin/llpluginmessagepipe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llplugin/llpluginmessagepipe.cpp')
-rw-r--r--indra/llplugin/llpluginmessagepipe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llplugin/llpluginmessagepipe.cpp b/indra/llplugin/llpluginmessagepipe.cpp
index 085afc0944..1e58e6c49b 100644
--- a/indra/llplugin/llpluginmessagepipe.cpp
+++ b/indra/llplugin/llpluginmessagepipe.cpp
@@ -121,8 +121,9 @@ bool LLPluginMessagePipe::addMessage(const std::string &message)
mOutputStartIndex = 0;
}
+ mOutput.reserve(mOutput.size() + message.size() + 1);
mOutput += message;
- mOutput += MESSAGE_DELIMITER; // message separator
+ mOutput.push_back(MESSAGE_DELIMITER); // message separator
return true;
}