aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestats.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/llframestats.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 'linden/indra/newview/llframestats.cpp')
-rw-r--r--linden/indra/newview/llframestats.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llframestats.cpp b/linden/indra/newview/llframestats.cpp
index cd49e7d..237f59b 100644
--- a/linden/indra/newview/llframestats.cpp
+++ b/linden/indra/newview/llframestats.cpp
@@ -168,7 +168,7 @@ void LLFrameStats::dump()
168 S32 total_visible_objects = 0; 168 S32 total_visible_objects = 0;
169 169
170 time_t cur_time; 170 time_t cur_time;
171 char time_str[24]; 171 char time_str[24]; /* Flawfinder: ignore */
172 //char *time_str; 172 //char *time_str;
173 time(&cur_time); 173 time(&cur_time);
174 strftime(time_str, 24, "%Y.%m.%d %H:%M:%S", localtime(&cur_time)); 174 strftime(time_str, 24, "%Y.%m.%d %H:%M:%S", localtime(&cur_time));
@@ -177,13 +177,13 @@ void LLFrameStats::dump()
177 177
178 static S32 dump_count = 0; 178 static S32 dump_count = 0;
179 179
180 char file_with_num[256]; 180 char file_with_num[256]; /* Flawfinder: ignore */
181 sprintf(file_with_num, "fs%d.txt", dump_count); 181 snprintf(file_with_num, sizeof(file_with_num), "fs%d.txt", dump_count); /* Flawfinder: ignore */
182 dump_count++; 182 dump_count++;
183 183
184 char filename[LL_MAX_PATH]; 184 char filename[LL_MAX_PATH]; /* Flawfinder: ignore */
185 sprintf(filename, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, file_with_num).c_str()); 185 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, file_with_num).c_str()); /* Flawfinder: ignore */
186 FILE *fp = LLFile::fopen(filename, "w"); 186 FILE *fp = LLFile::fopen(filename, "w"); /* Flawfinder: ignore */
187 if (!fp) 187 if (!fp)
188 { 188 {
189 llinfos << "Couldn't open file for dumping frame stats!" << llendl; 189 llinfos << "Couldn't open file for dumping frame stats!" << llendl;
@@ -224,8 +224,8 @@ void LLFrameStats::dump()
224 fclose(fp); 224 fclose(fp);
225 225
226 // Now dump cumulative stats 226 // Now dump cumulative stats
227 sprintf(filename, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, mSummaryFilename.c_str()).c_str()); 227 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, mSummaryFilename.c_str()).c_str()); /* Flawfinder: ignore */
228 fp = LLFile::fopen(filename, "a"); 228 fp = LLFile::fopen(filename, "a"); /* Flawfinder: ignore */
229 if (!fp) 229 if (!fp)
230 { 230 {
231 llinfos << "Couldn't open file for dumping frame stats!" << llendl; 231 llinfos << "Couldn't open file for dumping frame stats!" << llendl;