diff options
Diffstat (limited to 'linden/indra/newview/llfloaterlandholdings.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterlandholdings.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/linden/indra/newview/llfloaterlandholdings.cpp b/linden/indra/newview/llfloaterlandholdings.cpp index c9569d0..e34e84c 100644 --- a/linden/indra/newview/llfloaterlandholdings.cpp +++ b/linden/indra/newview/llfloaterlandholdings.cpp | |||
@@ -72,7 +72,7 @@ void LLFloaterLandHoldings::show(void*) | |||
72 | ""); | 72 | ""); |
73 | 73 | ||
74 | // TODO: request updated money balance? | 74 | // TODO: request updated money balance? |
75 | floater->open(); | 75 | floater->open(); /* Flawfinder: ignore */ |
76 | } | 76 | } |
77 | 77 | ||
78 | 78 | ||
@@ -177,14 +177,14 @@ void LLFloaterLandHoldings::processPlacesReply(LLMessageSystem* msg, void**) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | LLUUID owner_id; | 179 | LLUUID owner_id; |
180 | char name[MAX_STRING]; | 180 | char name[MAX_STRING]; /* Flawfinder: ignore */ |
181 | char desc[MAX_STRING]; | 181 | char desc[MAX_STRING]; /* Flawfinder: ignore */ |
182 | S32 actual_area; | 182 | S32 actual_area; |
183 | S32 billable_area; | 183 | S32 billable_area; |
184 | U8 flags; | 184 | U8 flags; |
185 | F32 global_x; | 185 | F32 global_x; |
186 | F32 global_y; | 186 | F32 global_y; |
187 | char sim_name[MAX_STRING]; | 187 | char sim_name[MAX_STRING]; /* Flawfinder: ignore */ |
188 | 188 | ||
189 | S32 i; | 189 | S32 i; |
190 | S32 count = msg->getNumberOfBlocks("QueryData"); | 190 | S32 count = msg->getNumberOfBlocks("QueryData"); |
@@ -206,21 +206,21 @@ void LLFloaterLandHoldings::processPlacesReply(LLMessageSystem* msg, void**) | |||
206 | S32 region_x = llround(global_x) % REGION_WIDTH_UNITS; | 206 | S32 region_x = llround(global_x) % REGION_WIDTH_UNITS; |
207 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; | 207 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; |
208 | 208 | ||
209 | char location[MAX_STRING]; | 209 | char location[MAX_STRING]; /* Flawfinder: ignore */ |
210 | sprintf(location, "%s (%d, %d)", sim_name, region_x, region_y); | 210 | snprintf(location, MAX_STRING, "%s (%d, %d)", sim_name, region_x, region_y); /* Flawfinder: ignore */ |
211 | 211 | ||
212 | char area[MAX_STRING]; | 212 | char area[MAX_STRING]; /* Flawfinder: ignore */ |
213 | if(billable_area == actual_area) | 213 | if(billable_area == actual_area) |
214 | { | 214 | { |
215 | sprintf(area, "%d", billable_area); | 215 | snprintf(area, MAX_STRING, "%d", billable_area); /* Flawfinder: ignore */ |
216 | } | 216 | } |
217 | else | 217 | else |
218 | { | 218 | { |
219 | sprintf(area, "%d / %d", billable_area, actual_area); | 219 | snprintf(area, MAX_STRING, "%d / %d", billable_area, actual_area); /* Flawfinder: ignore */ |
220 | } | 220 | } |
221 | 221 | ||
222 | char hidden[MAX_STRING]; | 222 | char hidden[MAX_STRING]; /* Flawfinder: ignore */ |
223 | sprintf(hidden, "%f %f", global_x, global_y); | 223 | snprintf(hidden, MAX_STRING, "%f %f", global_x, global_y); /* Flawfinder: ignore */ |
224 | 224 | ||
225 | LLSD element; | 225 | LLSD element; |
226 | element["columns"][0]["column"] = "name"; | 226 | element["columns"][0]["column"] = "name"; |
@@ -311,14 +311,14 @@ void LLFloaterLandHoldings::refreshAggregates() | |||
311 | S32 current_area = gStatusBar->getSquareMetersCommitted(); | 311 | S32 current_area = gStatusBar->getSquareMetersCommitted(); |
312 | S32 available_area = gStatusBar->getSquareMetersLeft(); | 312 | S32 available_area = gStatusBar->getSquareMetersLeft(); |
313 | 313 | ||
314 | char buffer[MAX_STRING]; | 314 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ |
315 | 315 | ||
316 | sprintf(buffer, "%d sq. meters", allowed_area); | 316 | snprintf(buffer, MAX_STRING, "%d sq. meters", allowed_area); /* Flawfinder: ignore */ |
317 | childSetValue("allowed_text", LLSD(buffer)); | 317 | childSetValue("allowed_text", LLSD(buffer)); |
318 | 318 | ||
319 | sprintf(buffer, "%d sq. meters", current_area); | 319 | snprintf(buffer, MAX_STRING, "%d sq. meters", current_area); /* Flawfinder: ignore */ |
320 | childSetValue("current_text", LLSD(buffer)); | 320 | childSetValue("current_text", LLSD(buffer)); |
321 | 321 | ||
322 | sprintf(buffer, "%d sq. meters", available_area); | 322 | snprintf(buffer, MAX_STRING, "%d sq. meters", available_area); /* Flawfinder: ignore */ |
323 | childSetValue("available_text", LLSD(buffer)); | 323 | childSetValue("available_text", LLSD(buffer)); |
324 | } | 324 | } |