aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llgldbg.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llrender/llgldbg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llrender/llgldbg.cpp b/linden/indra/llrender/llgldbg.cpp
index 4d9f5f9..ab35353 100644
--- a/linden/indra/llrender/llgldbg.cpp
+++ b/linden/indra/llrender/llgldbg.cpp
@@ -89,8 +89,8 @@ char *fv4(F32 *f)
89//------------------------------------------------------------------------ 89//------------------------------------------------------------------------
90char *fv3(F32 *f) 90char *fv3(F32 *f)
91{ 91{
92 static char str[128]; 92 static char str[128]; /* Flawfinder: ignore */
93 sprintf(str, "%8.3f, %8.3f, %8.3f", f[0], f[1], f[2]); 93 snprintf(str, sizeof(str), "%8.3f, %8.3f, %8.3f", f[0], f[1], f[2]); /* Flawfinder: ignore */
94 return str; 94 return str;
95} 95}
96 96
@@ -99,8 +99,8 @@ char *fv3(F32 *f)
99//------------------------------------------------------------------------ 99//------------------------------------------------------------------------
100char *fv1(F32 *f) 100char *fv1(F32 *f)
101{ 101{
102 static char str[128]; 102 static char str[128]; /* Flawfinder: ignore */
103 sprintf(str, "%8.3f", f[0]); 103 snprintf(str, sizeof(str), "%8.3f", f[0]); /* Flawfinder: ignore */
104 return str; 104 return str;
105} 105}
106 106