aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/lllandmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);