diff options
Diffstat (limited to '')
-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 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(); |