aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpacketbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llpacketbuffer.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llpacketbuffer.cpp b/linden/indra/llmessage/llpacketbuffer.cpp
index 69144f5..525569d 100644
--- a/linden/indra/llmessage/llpacketbuffer.cpp
+++ b/linden/indra/llmessage/llpacketbuffer.cpp
@@ -42,11 +42,13 @@ LLPacketBuffer::LLPacketBuffer(const LLHost &host, const char *datap, const S32
42 { 42 {
43 llerrs << "Sending packet > " << NET_BUFFER_SIZE << " of size " << size << llendl; 43 llerrs << "Sending packet > " << NET_BUFFER_SIZE << " of size " << size << llendl;
44 } 44 }
45 45 else // we previously relied on llerrs being fatal to not get here...
46 if (datap != NULL)
47 { 46 {
48 memcpy(mData, datap, size); /*Flawfinder: ignore*/ 47 if (datap != NULL)
49 mSize = size; 48 {
49 memcpy(mData, datap, size);
50 mSize = size;
51 }
50 } 52 }
51 53
52} 54}