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/newview/llviewerobject.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 '')
-rw-r--r-- | linden/indra/newview/llviewerobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp index d034aa7..40930e6 100644 --- a/linden/indra/newview/llviewerobject.cpp +++ b/linden/indra/newview/llviewerobject.cpp | |||
@@ -2396,6 +2396,7 @@ void LLViewerObject::loadTaskInvFile(const char* filename) | |||
2396 | if(ifs.good()) | 2396 | if(ifs.good()) |
2397 | { | 2397 | { |
2398 | char buffer[MAX_STRING]; | 2398 | char buffer[MAX_STRING]; |
2399 | // *NOTE: This buffer size is hard coded into scanf() below. | ||
2399 | char keyword[MAX_STRING]; | 2400 | char keyword[MAX_STRING]; |
2400 | if(mInventory) | 2401 | if(mInventory) |
2401 | { | 2402 | { |
@@ -2408,7 +2409,7 @@ void LLViewerObject::loadTaskInvFile(const char* filename) | |||
2408 | while(ifs.good()) | 2409 | while(ifs.good()) |
2409 | { | 2410 | { |
2410 | ifs.getline(buffer, MAX_STRING); | 2411 | ifs.getline(buffer, MAX_STRING); |
2411 | sscanf(buffer, " %s", keyword); | 2412 | sscanf(buffer, " %254s", keyword); |
2412 | if(0 == strcmp("inv_item", keyword)) | 2413 | if(0 == strcmp("inv_item", keyword)) |
2413 | { | 2414 | { |
2414 | LLPointer<LLInventoryObject> inv = new LLViewerInventoryItem; | 2415 | LLPointer<LLInventoryObject> inv = new LLViewerInventoryItem; |