From 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:48 -0500 Subject: Second Life viewer sources 1.13.2.15 --- linden/indra/llinventory/lllandmark.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linden/indra/llinventory/lllandmark.cpp') 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) } else if(version == 2) { + // *NOTE: Changing the buffer size will require changing the + // scanf call below. char region_id_str[MAX_STRING]; LLVector3 pos; cur += chars_read; - count = sscanf(cur, "region_id %s\n%n", region_id_str, &chars_read); + count = sscanf(cur, "region_id %254s\n%n", region_id_str, &chars_read); if(count != 1) goto error; cur += chars_read; count = sscanf(cur, "local_pos %f %f %f\n%n", pos.mV+VX, pos.mV+VY, pos.mV+VZ, &chars_read); -- cgit v1.1