diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/llinventory/lllandmark.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/llinventory/lllandmark.cpp')
-rw-r--r-- | linden/indra/llinventory/lllandmark.cpp | 4 |
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); |