aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/llinventorymodel.cpp
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-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/newview/llinventorymodel.cpp')
-rw-r--r--linden/indra/newview/llinventorymodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp
index 04506c8..7864aa8 100644
--- a/linden/indra/newview/llinventorymodel.cpp
+++ b/linden/indra/newview/llinventorymodel.cpp
@@ -1966,11 +1966,12 @@ bool LLInventoryModel::loadFromFile(
1966 llinfos << "unable to load inventory from: " << filename << llendl; 1966 llinfos << "unable to load inventory from: " << filename << llendl;
1967 return false; 1967 return false;
1968 } 1968 }
1969 // *NOTE: This buffer size is hard coded into scanf() below.
1969 char buffer[MAX_STRING]; 1970 char buffer[MAX_STRING];
1970 char keyword[MAX_STRING]; 1971 char keyword[MAX_STRING];
1971 while(!feof(file) && fgets(buffer, MAX_STRING, file)) 1972 while(!feof(file) && fgets(buffer, MAX_STRING, file))
1972 { 1973 {
1973 sscanf(buffer, " %s", keyword); 1974 sscanf(buffer, " %254s", keyword);
1974 if(0 == strcmp("inv_category", keyword)) 1975 if(0 == strcmp("inv_category", keyword))
1975 { 1976 {
1976 LLPointer<LLViewerInventoryCategory> inv_cat = new LLViewerInventoryCategory(LLUUID::null); 1977 LLPointer<LLViewerInventoryCategory> inv_cat = new LLViewerInventoryCategory(LLUUID::null);