aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewergesture.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/llviewergesture.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 '')
-rw-r--r--linden/indra/newview/llviewergesture.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewergesture.cpp b/linden/indra/newview/llviewergesture.cpp
index d4201c0..fd98070 100644
--- a/linden/indra/newview/llviewergesture.cpp
+++ b/linden/indra/newview/llviewergesture.cpp
@@ -156,18 +156,18 @@ void LLViewerGestureList::saveToServer()
156 //U64 xfer_id = gXferManager->registerXfer(buffer, end - buffer); 156 //U64 xfer_id = gXferManager->registerXfer(buffer, end - buffer);
157 // write to a file because mem<->mem xfer isn't implemented 157 // write to a file because mem<->mem xfer isn't implemented
158 LLUUID random_uuid; 158 LLUUID random_uuid;
159 char filename[LL_MAX_PATH]; 159 char filename[LL_MAX_PATH]; /* Flawfinder: ignore */
160 random_uuid.generate(); 160 random_uuid.generate();
161 random_uuid.toString(filename); 161 random_uuid.toString(filename);
162 strcat(filename,".tmp"); 162 strcat(filename,".tmp"); /* Flawfinder: ignore */
163 163
164 char filename_and_path[LL_MAX_PATH]; 164 char filename_and_path[LL_MAX_PATH]; /* Flawfinder: ignore */
165 sprintf(filename_and_path, "%s%s%s", 165 snprintf(filename_and_path, LL_MAX_PATH, "%s%s%s", /* Flawfinder: ignore */
166 gDirUtilp->getTempDir().c_str(), 166 gDirUtilp->getTempDir().c_str(),
167 gDirUtilp->getDirDelimiter().c_str(), 167 gDirUtilp->getDirDelimiter().c_str(),
168 filename); 168 filename);
169 169
170 FILE *fp = LLFile::fopen(filename_and_path, "wb"); 170 FILE* fp = LLFile::fopen(filename_and_path, "wb"); /* Flawfinder: ignore */
171 171
172 if (fp) 172 if (fp)
173 { 173 {
@@ -270,7 +270,7 @@ void LLViewerGestureList::xferCallback(void *data, S32 size, void** /*user_data*
270// static 270// static
271void LLViewerGestureList::processGestureUpdate(LLMessageSystem *msg, void** /*user_data*/) 271void LLViewerGestureList::processGestureUpdate(LLMessageSystem *msg, void** /*user_data*/)
272{ 272{
273 char remote_filename[MAX_STRING]; 273 char remote_filename[MAX_STRING]; /* Flawfinder: ignore */
274 msg->getStringFast(_PREHASH_AgentBlock, _PREHASH_Filename, MAX_STRING, remote_filename); 274 msg->getStringFast(_PREHASH_AgentBlock, _PREHASH_Filename, MAX_STRING, remote_filename);
275 275
276 276