diff options
Diffstat (limited to 'linden/indra/newview/llstatgraph.cpp')
-rw-r--r-- | linden/indra/newview/llstatgraph.cpp | 8 |
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(); |