aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertelehub.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloatertelehub.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llfloatertelehub.cpp')
-rw-r--r--linden/indra/newview/llfloatertelehub.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloatertelehub.cpp b/linden/indra/newview/llfloatertelehub.cpp
index 3ea9c80..3d84135 100644
--- a/linden/indra/newview/llfloatertelehub.cpp
+++ b/linden/indra/newview/llfloatertelehub.cpp
@@ -81,7 +81,7 @@ void LLFloaterTelehub::show()
81} 81}
82 82
83LLFloaterTelehub::LLFloaterTelehub() 83LLFloaterTelehub::LLFloaterTelehub()
84: LLFloater("telehub"), 84: LLFloater(std::string("telehub")),
85 mTelehubObjectID(), 85 mTelehubObjectID(),
86 mTelehubObjectName(), 86 mTelehubObjectName(),
87 mTelehubPos(), 87 mTelehubPos(),
@@ -244,8 +244,8 @@ void LLFloaterTelehub::onClickRemoveSpawnPoint(void* data)
244 msg->nextBlock("ParamList"); 244 msg->nextBlock("ParamList");
245 msg->addString("Parameter", "spawnpoint remove"); 245 msg->addString("Parameter", "spawnpoint remove");
246 246
247 char buffer[MAX_STRING]; /* Flawfinder: ignore */ 247 std::string buffer;
248 snprintf(buffer, MAX_STRING, "%d", spawn_index); /* Flawfinder: ignore */ 248 buffer = llformat("%d", spawn_index);
249 msg->nextBlock("ParamList"); 249 msg->nextBlock("ParamList");
250 msg->addString("Parameter", buffer); 250 msg->addString("Parameter", buffer);
251 251
@@ -263,11 +263,8 @@ void LLFloaterTelehub::processTelehubInfo(LLMessageSystem* msg, void**)
263 263
264void LLFloaterTelehub::unpackTelehubInfo(LLMessageSystem* msg) 264void LLFloaterTelehub::unpackTelehubInfo(LLMessageSystem* msg)
265{ 265{
266 char buffer[MAX_STRING]; /* Flawfinder: ignore */
267
268 msg->getUUID("TelehubBlock", "ObjectID", mTelehubObjectID); 266 msg->getUUID("TelehubBlock", "ObjectID", mTelehubObjectID);
269 msg->getString("TelehubBlock", "ObjectName", MAX_STRING, buffer); 267 msg->getString("TelehubBlock", "ObjectName", mTelehubObjectName);
270 mTelehubObjectName = buffer;
271 msg->getVector3("TelehubBlock", "TelehubPos", mTelehubPos); 268 msg->getVector3("TelehubBlock", "TelehubPos", mTelehubPos);
272 msg->getQuat("TelehubBlock", "TelehubRot", mTelehubRot); 269 msg->getQuat("TelehubBlock", "TelehubRot", mTelehubRot);
273 270
@@ -301,7 +298,7 @@ void LLFloaterTelehub::unpackTelehubInfo(LLMessageSystem* msg)
301 list->deleteAllItems(); 298 list->deleteAllItems();
302 for (S32 i = 0; i < mNumSpawn; i++) 299 for (S32 i = 0; i < mNumSpawn; i++)
303 { 300 {
304 LLString pos = llformat("%.1f, %.1f, %.1f", 301 std::string pos = llformat("%.1f, %.1f, %.1f",
305 mSpawnPointPos[i].mV[VX], 302 mSpawnPointPos[i].mV[VX],
306 mSpawnPointPos[i].mV[VY], 303 mSpawnPointPos[i].mV[VY],
307 mSpawnPointPos[i].mV[VZ]); 304 mSpawnPointPos[i].mV[VZ]);