aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelpick.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelpick.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/newview/llpanelpick.cpp b/linden/indra/newview/llpanelpick.cpp
index 4c9d5c3..ddd7934 100644
--- a/linden/indra/newview/llpanelpick.cpp
+++ b/linden/indra/newview/llpanelpick.cpp
@@ -289,10 +289,10 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
289 LLUUID parcel_id; 289 LLUUID parcel_id;
290 msg->getUUID("Data", "ParcelID", parcel_id); 290 msg->getUUID("Data", "ParcelID", parcel_id);
291 291
292 char name[DB_PARCEL_NAME_SIZE]; 292 char name[DB_PARCEL_NAME_SIZE]; /*Flawfinder: ignore*/
293 msg->getString("Data", "Name", DB_PARCEL_NAME_SIZE, name); 293 msg->getString("Data", "Name", DB_PARCEL_NAME_SIZE, name);
294 294
295 char desc[DB_PICK_DESC_SIZE]; 295 char desc[DB_PICK_DESC_SIZE]; /*Flawfinder: ignore*/
296 msg->getString("Data", "Desc", DB_PICK_DESC_SIZE, desc); 296 msg->getString("Data", "Desc", DB_PICK_DESC_SIZE, desc);
297 297
298 LLUUID snapshot_id; 298 LLUUID snapshot_id;
@@ -300,7 +300,7 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
300 300
301 // "Location text" is actually the owner name, the original 301 // "Location text" is actually the owner name, the original
302 // name that owner gave the parcel, and the location. 302 // name that owner gave the parcel, and the location.
303 char buffer[256]; 303 char buffer[256]; /*Flawfinder: ignore*/
304 LLString location_text; 304 LLString location_text;
305 305
306 msg->getString("Data", "User", 256, buffer); 306 msg->getString("Data", "User", 256, buffer);
@@ -314,7 +314,7 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
314 location_text.append(", "); 314 location_text.append(", ");
315 } 315 }
316 316
317 char sim_name[256]; 317 char sim_name[256]; /*Flawfinder: ignore*/
318 msg->getString("Data", "SimName", 256, sim_name); 318 msg->getString("Data", "SimName", 256, sim_name);
319 319
320 LLVector3d pos_global; 320 LLVector3d pos_global;
@@ -324,7 +324,7 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
324 S32 region_y = llround((F32)pos_global.mdV[VY]) % REGION_WIDTH_UNITS; 324 S32 region_y = llround((F32)pos_global.mdV[VY]) % REGION_WIDTH_UNITS;
325 S32 region_z = llround((F32)pos_global.mdV[VZ]); 325 S32 region_z = llround((F32)pos_global.mdV[VZ]);
326 326
327 sprintf(buffer, "%s (%d, %d, %d)", sim_name, region_x, region_y, region_z); 327 snprintf(buffer, sizeof(buffer), "%s (%d, %d, %d)", sim_name, region_x, region_y, region_z); /*Flawfinder: ignore*/
328 location_text.append(buffer); 328 location_text.append(buffer);
329 329
330 S32 sort_order; 330 S32 sort_order;
@@ -359,7 +359,7 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
359 self->mLocationEditor->setText(location_text); 359 self->mLocationEditor->setText(location_text);
360 self->mEnabledCheck->set(enabled); 360 self->mEnabledCheck->set(enabled);
361 361
362 sprintf(buffer, "%d", sort_order); 362 snprintf(buffer, sizeof(buffer), "%d", sort_order); /*Flawfinder: ignore*/
363 self->mSortOrderEditor->setText(buffer); 363 self->mSortOrderEditor->setText(buffer);
364 } 364 }
365} 365}
@@ -506,8 +506,11 @@ void LLPanelPick::onCommitAny(LLUICtrl* ctrl, void* data)
506 } 506 }
507 else 507 else
508 {*/ 508 {*/
509 LLTabContainerVertical* tab = (LLTabContainerVertical*)self->getParent(); 509 LLTabContainerVertical* tab = (LLTabContainerVertical*)self->getParent();
510 tab->setCurrentTabName(self->mNameEditor->getText()); 510 if (tab)
511 {
512 if(tab) tab->setCurrentTabName(self->mNameEditor->getText());
513 }
511 //} 514 //}
512 } 515 }
513} 516}