aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/lllandmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llinventory/lllandmark.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/llinventory/lllandmark.cpp b/linden/indra/llinventory/lllandmark.cpp
index bca64d1..d7dca20 100644
--- a/linden/indra/llinventory/lllandmark.cpp
+++ b/linden/indra/llinventory/lllandmark.cpp
@@ -138,10 +138,12 @@ LLLandmark* LLLandmark::constructFromString(const char *buffer)
138 } 138 }
139 else if(version == 2) 139 else if(version == 2)
140 { 140 {
141 // *NOTE: Changing the buffer size will require changing the
142 // scanf call below.
141 char region_id_str[MAX_STRING]; 143 char region_id_str[MAX_STRING];
142 LLVector3 pos; 144 LLVector3 pos;
143 cur += chars_read; 145 cur += chars_read;
144 count = sscanf(cur, "region_id %s\n%n", region_id_str, &chars_read); 146 count = sscanf(cur, "region_id %254s\n%n", region_id_str, &chars_read);
145 if(count != 1) goto error; 147 if(count != 1) goto error;
146 cur += chars_read; 148 cur += chars_read;
147 count = sscanf(cur, "local_pos %f %f %f\n%n", pos.mV+VX, pos.mV+VY, pos.mV+VZ, &chars_read); 149 count = sscanf(cur, "local_pos %f %f %f\n%n", pos.mV+VX, pos.mV+VY, pos.mV+VZ, &chars_read);