aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lluserauth.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/newview/lluserauth.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 '')
-rw-r--r--linden/indra/newview/lluserauth.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp
index f980aa0..4b554a9 100644
--- a/linden/indra/newview/lluserauth.cpp
+++ b/linden/indra/newview/lluserauth.cpp
@@ -117,14 +117,14 @@ void LLUserAuth::authenticate(
117 XMLRPC_VectorAppendString(params, "last", lastname, 0); 117 XMLRPC_VectorAppendString(params, "last", lastname, 0);
118 XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); 118 XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0);
119 XMLRPC_VectorAppendString(params, "start", start, 0); 119 XMLRPC_VectorAppendString(params, "start", start, 0);
120 char buffer[MAX_STRING]; 120 char buffer[MAX_STRING]; /* Flawfinder: ignore */
121 sprintf(buffer, "%d", LL_VERSION_MAJOR); 121 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_MAJOR); /* Flawfinder: ignore */
122 XMLRPC_VectorAppendString(params, "major", buffer, 0); 122 XMLRPC_VectorAppendString(params, "major", buffer, 0);
123 sprintf(buffer, "%d", LL_VERSION_MINOR); 123 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_MINOR); /* Flawfinder: ignore */
124 XMLRPC_VectorAppendString(params, "minor", buffer, 0); 124 XMLRPC_VectorAppendString(params, "minor", buffer, 0);
125 sprintf(buffer, "%d", LL_VERSION_PATCH); 125 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_PATCH); /* Flawfinder: ignore */
126 XMLRPC_VectorAppendString(params, "patch", buffer, 0); 126 XMLRPC_VectorAppendString(params, "patch", buffer, 0);
127 sprintf(buffer, "%d", LL_VIEWER_BUILD); 127 snprintf(buffer, MAX_STRING, "%d", LL_VIEWER_BUILD); /* Flawfinder: ignore */
128 XMLRPC_VectorAppendString(params, "build", buffer, 0); 128 XMLRPC_VectorAppendString(params, "build", buffer, 0);
129 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); 129 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0);
130 XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); 130 XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0);
@@ -230,7 +230,7 @@ static void parseOptionInto(
230{ 230{
231 std::string key; 231 std::string key;
232 std::string val; 232 std::string val;
233 char buffer[MAX_STRING]; 233 char buffer[MAX_STRING]; /* Flawfinder: ignore */
234 XMLRPC_VALUE_TYPE_EASY type; 234 XMLRPC_VALUE_TYPE_EASY type;
235 XMLRPC_VALUE row = XMLRPC_VectorRewind(option); 235 XMLRPC_VALUE row = XMLRPC_VectorRewind(option);
236 while(row) 236 while(row)
@@ -248,7 +248,7 @@ static void parseOptionInto(
248 } 248 }
249 else if(xmlrpc_type_int == type) 249 else if(xmlrpc_type_int == type)
250 { 250 {
251 sprintf(buffer, "%d", XMLRPC_GetValueInt(opt)); 251 snprintf(buffer, MAX_STRING, "%d", XMLRPC_GetValueInt(opt)); /* Flawfinder: ignore */
252 val.assign(buffer); 252 val.assign(buffer);
253 } 253 }
254 //llinfos "option val: " << val << llendl; 254 //llinfos "option val: " << val << llendl;
@@ -296,8 +296,8 @@ LLUserAuth::UserAuthcode LLUserAuth::parseResponse()
296 } 296 }
297 else if(xmlrpc_type_int == type) 297 else if(xmlrpc_type_int == type)
298 { 298 {
299 char buf[MAX_STRING]; 299 char buf[MAX_STRING]; /* Flawfinder: ignore */
300 snprintf(buf, MAX_STRING, "%d", XMLRPC_GetValueInt(current)); 300 snprintf(buf, MAX_STRING, "%d", XMLRPC_GetValueInt(current)); /* Flawfinder: ignore */
301 val.assign(buf); 301 val.assign(buf);
302 lldebugs << "val: " << val << llendl; 302 lldebugs << "val: " << val << llendl;
303 mResponses.insert(response_t::value_type(key, val)); 303 mResponses.insert(response_t::value_type(key, val));