aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldebugmessagebox.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/lldebugmessagebox.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/lldebugmessagebox.cpp')
-rw-r--r--linden/indra/newview/lldebugmessagebox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/lldebugmessagebox.cpp b/linden/indra/newview/lldebugmessagebox.cpp
index 46dffdf..e6c1bf1 100644
--- a/linden/indra/newview/lldebugmessagebox.cpp
+++ b/linden/indra/newview/lldebugmessagebox.cpp
@@ -163,7 +163,7 @@ LLDebugVarMessageBox* LLDebugVarMessageBox::show(const std::string& title, EDebu
163 sInstances[title_string] = box; 163 sInstances[title_string] = box;
164 gFloaterView->addChild(box); 164 gFloaterView->addChild(box);
165 box->reshape(200,150); 165 box->reshape(200,150);
166 box->open(); 166 box->open(); /*Flawfinder: ignore*/
167 box->mTitle = title_string; 167 box->mTitle = title_string;
168 } 168 }
169 169
@@ -206,18 +206,18 @@ void LLDebugVarMessageBox::onClose(bool app_quitting)
206 206
207void LLDebugVarMessageBox::draw() 207void LLDebugVarMessageBox::draw()
208{ 208{
209 char text[128]; 209 char text[128]; /*Flawfinder: ignore*/
210 switch(mVarType) 210 switch(mVarType)
211 { 211 {
212 case VAR_TYPE_F32: 212 case VAR_TYPE_F32:
213 sprintf(text, "%.3f", *((F32*)mVarData)); 213 snprintf(text, sizeof(text), "%.3f", *((F32*)mVarData)); /*Flawfinder: ignore*/
214 break; 214 break;
215 case VAR_TYPE_S32: 215 case VAR_TYPE_S32:
216 sprintf(text, "%d", *((S32*)mVarData)); 216 snprintf(text, sizeof(text), "%d", *((S32*)mVarData)); /*Flawfinder: ignore*/
217 break; 217 break;
218 case VAR_TYPE_VEC3: 218 case VAR_TYPE_VEC3:
219 LLVector3* vec_p = (LLVector3*)mVarData; 219 LLVector3* vec_p = (LLVector3*)mVarData;
220 sprintf(text, "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); 220 snprintf(text, sizeof(text), "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); /*Flawfinder: ignore*/
221 break; 221 break;
222 } 222 }
223 mText->setText(text); 223 mText->setText(text);