diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llcommon/llsdserialize.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-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/llcommon/llsdserialize.cpp')
-rw-r--r-- | linden/indra/llcommon/llsdserialize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llcommon/llsdserialize.cpp b/linden/indra/llcommon/llsdserialize.cpp index 4c00c98..653fc66 100644 --- a/linden/indra/llcommon/llsdserialize.cpp +++ b/linden/indra/llcommon/llsdserialize.cpp | |||
@@ -804,7 +804,7 @@ S32 LLSDBinaryParser::parse(std::istream& istr, LLSD& data) const | |||
804 | // the size, and read it. | 804 | // the size, and read it. |
805 | // *FIX: Should we set a maximum size? | 805 | // *FIX: Should we set a maximum size? |
806 | U32 size_nbo = 0; | 806 | U32 size_nbo = 0; |
807 | istr.read((char*)&size_nbo, sizeof(U32)); | 807 | istr.read((char*)&size_nbo, sizeof(U32)); /*Flawfinder: ignore*/ |
808 | S32 size = (S32)ntohl(size_nbo); | 808 | S32 size = (S32)ntohl(size_nbo); |
809 | std::vector<U8> value; | 809 | std::vector<U8> value; |
810 | if(size) | 810 | if(size) |
@@ -944,7 +944,7 @@ void LLSDFormatter::realFormat(const std::string& format) | |||
944 | void LLSDFormatter::formatReal(LLSD::Real real, std::ostream& ostr) const | 944 | void LLSDFormatter::formatReal(LLSD::Real real, std::ostream& ostr) const |
945 | { | 945 | { |
946 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ | 946 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ |
947 | snprintf(buffer, MAX_STRING, mRealFormat.c_str(), real); | 947 | snprintf(buffer, MAX_STRING, mRealFormat.c_str(), real); /* Flawfinder: ignore */ |
948 | ostr << buffer; | 948 | ostr << buffer; |
949 | } | 949 | } |
950 | 950 | ||