diff options
Diffstat (limited to 'linden/indra/newview/llinventorymodel.cpp')
-rw-r--r-- | linden/indra/newview/llinventorymodel.cpp | 3 |
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); |