diff options
Diffstat (limited to 'linden/indra/newview/llstatgraph.cpp')
-rw-r--r-- | linden/indra/newview/llstatgraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llstatgraph.cpp b/linden/indra/newview/llstatgraph.cpp index e85dc8d..ff43965 100644 --- a/linden/indra/newview/llstatgraph.cpp +++ b/linden/indra/newview/llstatgraph.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 5 | * Copyright (c) 2002-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -94,7 +95,7 @@ void LLStatGraph::draw() | |||
94 | char format_str[256]; /* Flawfinder: ignore */ | 95 | char format_str[256]; /* Flawfinder: ignore */ |
95 | char tmp_str[256]; /* Flawfinder: ignore */ | 96 | char tmp_str[256]; /* Flawfinder: ignore */ |
96 | snprintf(format_str, sizeof(format_str), "%%s%%.%df%%s", mPrecision); /* Flawfinder: ignore */ | 97 | 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()); /* Flawfinder: ignore */ | 98 | snprintf(tmp_str, sizeof(tmp_str), format_str, mLabel.c_str(), mValue, mUnits.c_str()); /* Flawfinder: ignore */ |
98 | setToolTip(tmp_str); | 99 | setToolTip(tmp_str); |
99 | 100 | ||
100 | mUpdateTimer.reset(); | 101 | mUpdateTimer.reset(); |