aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/lllandmark.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/llinventory/lllandmark.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/llinventory/lllandmark.cpp')
-rw-r--r--linden/indra/llinventory/lllandmark.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llinventory/lllandmark.cpp b/linden/indra/llinventory/lllandmark.cpp
index d7dca20..c153d68 100644
--- a/linden/indra/llinventory/lllandmark.cpp
+++ b/linden/indra/llinventory/lllandmark.cpp
@@ -140,10 +140,13 @@ LLLandmark* LLLandmark::constructFromString(const char *buffer)
140 { 140 {
141 // *NOTE: Changing the buffer size will require changing the 141 // *NOTE: Changing the buffer size will require changing the
142 // scanf call below. 142 // scanf call below.
143 char region_id_str[MAX_STRING]; 143 char region_id_str[MAX_STRING]; /* Flawfinder: ignore */
144 LLVector3 pos; 144 LLVector3 pos;
145 cur += chars_read; 145 cur += chars_read;
146 count = sscanf(cur, "region_id %254s\n%n", region_id_str, &chars_read); 146 count = sscanf( /* Flawfinder: ignore */
147 cur,
148 "region_id %254s\n%n",
149 region_id_str, &chars_read);
147 if(count != 1) goto error; 150 if(count != 1) goto error;
148 cur += chars_read; 151 cur += chars_read;
149 count = sscanf(cur, "local_pos %f %f %f\n%n", pos.mV+VX, pos.mV+VY, pos.mV+VZ, &chars_read); 152 count = sscanf(cur, "local_pos %f %f %f\n%n", pos.mV+VX, pos.mV+VY, pos.mV+VZ, &chars_read);