diff options
Diffstat (limited to 'linden/indra/newview/lluserauth.cpp')
-rw-r--r-- | linden/indra/newview/lluserauth.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp index 196a4c8..0f4c108 100644 --- a/linden/indra/newview/lluserauth.cpp +++ b/linden/indra/newview/lluserauth.cpp | |||
@@ -124,11 +124,7 @@ void LLUserAuth::authenticate( | |||
124 | XMLRPC_VectorAppendString(params, "last", lastname, 0); | 124 | XMLRPC_VectorAppendString(params, "last", lastname, 0); |
125 | XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); | 125 | XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); |
126 | XMLRPC_VectorAppendString(params, "start", start, 0); | 126 | XMLRPC_VectorAppendString(params, "start", start, 0); |
127 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ | 127 | XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name |
128 | // the version is treated as a single string | ||
129 | snprintf(buffer, MAX_STRING, "%d.%d.%d.%d", | ||
130 | LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD); /* Flawfinder: ignore */ | ||
131 | XMLRPC_VectorAppendString(params, "version", buffer, 0); | ||
132 | XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0); | 128 | XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0); |
133 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); | 129 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); |
134 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); | 130 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); |
@@ -146,8 +142,7 @@ void LLUserAuth::authenticate( | |||
146 | { | 142 | { |
147 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); | 143 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); |
148 | } | 144 | } |
149 | viewer_digest.toString(buffer); | 145 | XMLRPC_VectorAppendString(params, "viewer_digest", viewer_digest.asString().c_str(), 0); |
150 | XMLRPC_VectorAppendString(params, "viewer_digest", buffer, 0); | ||
151 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); | 146 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); |
152 | 147 | ||
153 | // append optional requests in an array | 148 | // append optional requests in an array |
@@ -231,7 +226,6 @@ static void parseOptionInto( | |||
231 | { | 226 | { |
232 | std::string key; | 227 | std::string key; |
233 | std::string val; | 228 | std::string val; |
234 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ | ||
235 | XMLRPC_VALUE_TYPE_EASY type; | 229 | XMLRPC_VALUE_TYPE_EASY type; |
236 | XMLRPC_VALUE row = XMLRPC_VectorRewind(option); | 230 | XMLRPC_VALUE row = XMLRPC_VectorRewind(option); |
237 | while(row) | 231 | while(row) |
@@ -249,8 +243,7 @@ static void parseOptionInto( | |||
249 | } | 243 | } |
250 | else if(xmlrpc_type_int == type) | 244 | else if(xmlrpc_type_int == type) |
251 | { | 245 | { |
252 | snprintf(buffer, MAX_STRING, "%d", XMLRPC_GetValueInt(opt)); /* Flawfinder: ignore */ | 246 | val = llformat("%d", XMLRPC_GetValueInt(opt)); |
253 | val.assign(buffer); | ||
254 | } | 247 | } |
255 | //llinfos "option val: " << val << llendl; | 248 | //llinfos "option val: " << val << llendl; |
256 | responses.insert(LLUserAuth::response_t::value_type(key, val)); | 249 | responses.insert(LLUserAuth::response_t::value_type(key, val)); |