aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstatgraph.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:19 -0500
committerJacek Antonelli2008-08-15 23:45:19 -0500
commitb235c59d60472f818a9142c0886b95a0ff4191d7 (patch)
treed323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llstatgraph.cpp
parentSecond Life viewer sources 1.18.5.3 (diff)
downloadmeta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llstatgraph.cpp')
-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 bd31077..25ff11c 100644
--- a/linden/indra/newview/llstatgraph.cpp
+++ b/linden/indra/newview/llstatgraph.cpp
@@ -95,10 +95,10 @@ void LLStatGraph::draw()
95 95
96 if (mUpdateTimer.getElapsedTimeF32() > 0.5f) 96 if (mUpdateTimer.getElapsedTimeF32() > 0.5f)
97 { 97 {
98 char format_str[256]; /* Flawfinder: ignore */ 98 std::string format_str;
99 char tmp_str[256]; /* Flawfinder: ignore */ 99 std::string tmp_str;
100 snprintf(format_str, sizeof(format_str), "%%s%%.%df%%s", mPrecision); /* Flawfinder: ignore */ 100 format_str = llformat("%%s%%.%df%%s", mPrecision);
101 snprintf(tmp_str, sizeof(tmp_str), format_str, mLabel.c_str(), mValue, mUnits.c_str()); /* Flawfinder: ignore */ 101 tmp_str = llformat(format_str.c_str(), mLabel.c_str(), mValue, mUnits.c_str());
102 setToolTip(tmp_str); 102 setToolTip(tmp_str);
103 103
104 mUpdateTimer.reset(); 104 mUpdateTimer.reset();