aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llvolumemgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmath/llvolumemgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llmath/llvolumemgr.cpp b/linden/indra/llmath/llvolumemgr.cpp
index 6b6182a..2aa480c 100644
--- a/linden/indra/llmath/llvolumemgr.cpp
+++ b/linden/indra/llmath/llvolumemgr.cpp
@@ -286,7 +286,7 @@ F32 LLVolumeLODGroup::getVolumeScaleFromDetail(const S32 detail)
286 286
287F32 LLVolumeLODGroup::dump() 287F32 LLVolumeLODGroup::dump()
288{ 288{
289 char dump_str[255]; 289 char dump_str[255]; /* Flawfinder: ignore */
290 F32 usage = 0.f; 290 F32 usage = 0.f;
291 for (S32 i = 0; i < NUM_LODS; i++) 291 for (S32 i = 0; i < NUM_LODS; i++)
292 { 292 {
@@ -297,7 +297,7 @@ F32 LLVolumeLODGroup::dump()
297 } 297 }
298 usage = usage / (F32)NUM_LODS; 298 usage = usage / (F32)NUM_LODS;
299 299
300 sprintf(dump_str, "%.3f %d %d %d %d", usage, mAccessCount[0], mAccessCount[1], mAccessCount[2], mAccessCount[3]); 300 snprintf(dump_str, sizeof(dump_str), "%.3f %d %d %d %d", usage, mAccessCount[0], mAccessCount[1], mAccessCount[2], mAccessCount[3]); /* Flawfinder: ignore */
301 301
302 llinfos << dump_str << llendl; 302 llinfos << dump_str << llendl;
303 return usage; 303 return usage;