aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelplace.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/llpanelplace.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/llpanelplace.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/llpanelplace.cpp b/linden/indra/newview/llpanelplace.cpp
index 4f316c9..f373e99 100644
--- a/linden/indra/newview/llpanelplace.cpp
+++ b/linden/indra/newview/llpanelplace.cpp
@@ -139,20 +139,20 @@ void LLPanelPlace::processParcelInfoReply(LLMessageSystem *msg, void **)
139 LLUUID agent_id; 139 LLUUID agent_id;
140 LLUUID parcel_id; 140 LLUUID parcel_id;
141 LLUUID owner_id; 141 LLUUID owner_id;
142 char name[MAX_STRING]; 142 char name[MAX_STRING]; /*Flawfinder: ignore*/
143 char desc[MAX_STRING]; 143 char desc[MAX_STRING]; /*Flawfinder: ignore*/
144 S32 actual_area; 144 S32 actual_area;
145 S32 billable_area; 145 S32 billable_area;
146 U8 flags; 146 U8 flags;
147 F32 global_x; 147 F32 global_x;
148 F32 global_y; 148 F32 global_y;
149 F32 global_z; 149 F32 global_z;
150 char sim_name[MAX_STRING]; 150 char sim_name[MAX_STRING]; /*Flawfinder: ignore*/
151 LLUUID snapshot_id; 151 LLUUID snapshot_id;
152 F32 dwell; 152 F32 dwell;
153 S32 sale_price; 153 S32 sale_price;
154 S32 auction_id; 154 S32 auction_id;
155 char buffer[256]; 155 char buffer[256]; /*Flawfinder: ignore*/
156 156
157 msg->getUUID("AgentData", "AgentID", agent_id ); 157 msg->getUUID("AgentData", "AgentID", agent_id );
158 msg->getUUID("Data", "ParcelID", parcel_id); 158 msg->getUUID("Data", "ParcelID", parcel_id);
@@ -193,16 +193,16 @@ void LLPanelPlace::processParcelInfoReply(LLMessageSystem *msg, void **)
193 self->mDescEditor->setText(desc); 193 self->mDescEditor->setText(desc);
194 194
195 LLString info; 195 LLString info;
196 sprintf(buffer, "Traffic: %.0f, Area: %d sq. m.", dwell, actual_area); 196 snprintf(buffer, sizeof(buffer), "Traffic: %.0f, Area: %d sq. m.", dwell, actual_area); /*Flawfinder: ignore*/
197 info.append(buffer); 197 info.append(buffer);
198 if (flags & DFQ_FOR_SALE) 198 if (flags & DFQ_FOR_SALE)
199 { 199 {
200 sprintf(buffer, ", For Sale for L$%d", sale_price); 200 snprintf(buffer, sizeof(buffer), ", For Sale for L$%d", sale_price); /*Flawfinder: ignore*/
201 info.append(buffer); 201 info.append(buffer);
202 } 202 }
203 if (auction_id != 0) 203 if (auction_id != 0)
204 { 204 {
205 sprintf(buffer, ", Auction ID %010d", auction_id); 205 snprintf(buffer, sizeof(buffer), ", Auction ID %010d", auction_id); /*Flawfinder: ignore*/
206 info.append(buffer); 206 info.append(buffer);
207 } 207 }
208 self->mInfoEditor->setText(info); 208 self->mInfoEditor->setText(info);
@@ -218,7 +218,7 @@ void LLPanelPlace::processParcelInfoReply(LLMessageSystem *msg, void **)
218 rating = LLViewerRegion::accessToString(SIM_ACCESS_MATURE); 218 rating = LLViewerRegion::accessToString(SIM_ACCESS_MATURE);
219 } 219 }
220 220
221 sprintf(buffer, "%s %d, %d, %d (%s)", 221 snprintf(buffer, sizeof(buffer), "%s %d, %d, %d (%s)", /*Flawfinder: ignore*/
222 sim_name, region_x, region_y, region_z, rating); 222 sim_name, region_x, region_y, region_z, rating);
223 self->mLocationEditor->setText(buffer); 223 self->mLocationEditor->setText(buffer);
224 224
@@ -280,8 +280,8 @@ void LLPanelPlace::callbackAuctionWebPage(S32 option, void* data)
280 280
281 if (0 == option) 281 if (0 == option)
282 { 282 {
283 char url[256]; 283 char url[256]; /*Flawfinder: ignore*/
284 sprintf(url, "%s%010d", AUCTION_URL, self->mAuctionID); 284 snprintf(url, sizeof(url), "%s%010d", AUCTION_URL, self->mAuctionID); /*Flawfinder: ignore*/
285 285
286 llinfos << "Loading auction page " << url << llendl; 286 llinfos << "Loading auction page " << url << llendl;
287 287