aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lldatapacker.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llmessage/lldatapacker.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llmessage/lldatapacker.cpp')
-rw-r--r--linden/indra/llmessage/lldatapacker.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmessage/lldatapacker.cpp b/linden/indra/llmessage/lldatapacker.cpp
index 4a15d8b..d4c8704 100644
--- a/linden/indra/llmessage/lldatapacker.cpp
+++ b/linden/indra/llmessage/lldatapacker.cpp
@@ -543,7 +543,7 @@ const LLDataPackerBinaryBuffer& LLDataPackerBinaryBuffer::operator=(const LLData
543 // We've got problems, ack! 543 // We've got problems, ack!
544 llerrs << "Trying to do an assignment with not enough room in the target." << llendl; 544 llerrs << "Trying to do an assignment with not enough room in the target." << llendl;
545 } 545 }
546 memcpy(mBufferp, a.mBufferp, a.getBufferSize()); 546 memcpy(mBufferp, a.mBufferp, a.getBufferSize()); /*Flawfinder: ignore*/
547 return *this; 547 return *this;
548} 548}
549 549
@@ -1236,7 +1236,7 @@ BOOL LLDataPackerAsciiBuffer::unpackUUID(LLUUID &value, const char *name)
1236 } 1236 }
1237 1237
1238 char tmp_str[64]; /* Flawfinder: ignore */ 1238 char tmp_str[64]; /* Flawfinder: ignore */
1239 sscanf(valuestr, "%63s", tmp_str); 1239 sscanf(valuestr, "%63s", tmp_str); /* Flawfinder: ignore */
1240 value.set(tmp_str); 1240 value.set(tmp_str);
1241 1241
1242 return success; 1242 return success;
@@ -1258,7 +1258,7 @@ void LLDataPackerAsciiBuffer::writeIndentedName(const char *name)
1258 } 1258 }
1259 else 1259 else
1260 { 1260 {
1261 numCopied = (S32)strlen(name) + 1; //name + tab /* Flawfinder: ignore */ 1261 numCopied = (S32)strlen(name) + 1; /* Flawfinder: ignore */ //name + tab
1262 } 1262 }
1263 1263
1264 // snprintf returns number of bytes that would have been written had the 1264 // snprintf returns number of bytes that would have been written had the
@@ -1288,9 +1288,9 @@ BOOL LLDataPackerAsciiBuffer::getValueStr(const char *name, char *out_value, S32
1288 // Read both the name and the value, and validate the name. 1288 // Read both the name and the value, and validate the name.
1289 sscanf(mCurBufferp, "%511[^\n]", buffer); 1289 sscanf(mCurBufferp, "%511[^\n]", buffer);
1290 // Skip the \n 1290 // Skip the \n
1291 mCurBufferp += (S32)strlen(buffer) + 1; 1291 mCurBufferp += (S32)strlen(buffer) + 1; /* Flawfinder: ignore */
1292 1292
1293 sscanf(buffer, "%511s %511[^\n]", keyword, value); 1293 sscanf(buffer, "%511s %511[^\n]", keyword, value); /* Flawfinder: ignore */
1294 1294
1295 if (strcmp(keyword, name)) 1295 if (strcmp(keyword, name))
1296 { 1296 {
@@ -1794,7 +1794,7 @@ BOOL LLDataPackerAsciiFile::unpackUUID(LLUUID &value, const char *name)
1794 } 1794 }
1795 1795
1796 char tmp_str[64]; /*Flawfinder: ignore */ 1796 char tmp_str[64]; /*Flawfinder: ignore */
1797 sscanf(valuestr,"%63s",tmp_str); 1797 sscanf(valuestr,"%63s",tmp_str); /* Flawfinder: ignore */
1798 value.set(tmp_str); 1798 value.set(tmp_str);
1799 1799
1800 return success; 1800 return success;
@@ -1838,7 +1838,7 @@ BOOL LLDataPackerAsciiFile::getValueStr(const char *name, char *out_value, S32 v
1838 fgetpos(mFP, &last_pos); 1838 fgetpos(mFP, &last_pos);
1839 fgets(buffer, DP_BUFSIZE, mFP); 1839 fgets(buffer, DP_BUFSIZE, mFP);
1840 1840
1841 sscanf(buffer, "%511s %511[^\n]", keyword, value); 1841 sscanf(buffer, "%511s %511[^\n]", keyword, value); /* Flawfinder: ignore */
1842 1842
1843 if (!keyword[0]) 1843 if (!keyword[0])
1844 { 1844 {
@@ -1863,7 +1863,7 @@ BOOL LLDataPackerAsciiFile::getValueStr(const char *name, char *out_value, S32 v
1863 { 1863 {
1864 mInputStream->getline(buffer, DP_BUFSIZE); 1864 mInputStream->getline(buffer, DP_BUFSIZE);
1865 1865
1866 sscanf(buffer, "%511s %511[^\n]", keyword, value); 1866 sscanf(buffer, "%511s %511[^\n]", keyword, value); /* Flawfinder: ignore */
1867 if (!keyword[0]) 1867 if (!keyword[0])
1868 { 1868 {
1869 llwarns << "Data packer could not get the keyword!" << llendl; 1869 llwarns << "Data packer could not get the keyword!" << llendl;