aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llvolumemgr.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/llmath/llvolumemgr.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 'linden/indra/llmath/llvolumemgr.cpp')
-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;