diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llmessage/llpacketbuffer.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llmessage/llpacketbuffer.cpp')
-rw-r--r-- | linden/indra/llmessage/llpacketbuffer.cpp | 10 |
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 | } |