aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstatgraph.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/llstatgraph.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/llstatgraph.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llstatgraph.cpp b/linden/indra/newview/llstatgraph.cpp
index b2dec08..e85dc8d 100644
--- a/linden/indra/newview/llstatgraph.cpp
+++ b/linden/indra/newview/llstatgraph.cpp
@@ -91,10 +91,10 @@ void LLStatGraph::draw()
91 91
92 if (mUpdateTimer.getElapsedTimeF32() > 0.5f) 92 if (mUpdateTimer.getElapsedTimeF32() > 0.5f)
93 { 93 {
94 char format_str[256]; 94 char format_str[256]; /* Flawfinder: ignore */
95 char tmp_str[256]; 95 char tmp_str[256]; /* Flawfinder: ignore */
96 sprintf(format_str, "%%s%%.%df%%s", mPrecision); 96 snprintf(format_str, sizeof(format_str), "%%s%%.%df%%s", mPrecision); /* Flawfinder: ignore */
97 sprintf(tmp_str, format_str, mLabel.c_str(), mValue, mUnits.c_str()); 97 sprintf(tmp_str, format_str, mLabel.c_str(), mValue, mUnits.c_str()); /* Flawfinder: ignore */
98 setToolTip(tmp_str); 98 setToolTip(tmp_str);
99 99
100 mUpdateTimer.reset(); 100 mUpdateTimer.reset();