summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r--indra/newview/llviewerinventory.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 24c230a387..7a48367a47 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -249,7 +249,7 @@ bool LLViewerInventoryItem::importFileLocal(FILE* fp)
bool LLViewerInventoryItem::exportFileLocal(FILE* fp) const
{
- char uuid_str[UUID_STR_LENGTH];
+ char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */
fprintf(fp, "\tinv_item\t0\n\t{\n");
mUUID.toString(uuid_str);
fprintf(fp, "\t\titem_id\t%s\n", uuid_str);
@@ -431,16 +431,17 @@ bool LLViewerInventoryCategory::fetchDescendents()
bool LLViewerInventoryCategory::importFileLocal(FILE* fp)
{
// *NOTE: This buffer size is hard coded into scanf() below.
- char buffer[MAX_STRING];
- char keyword[MAX_STRING];
- char valuestr[MAX_STRING];
+ char buffer[MAX_STRING]; /* Flawfinder: ignore */
+ char keyword[MAX_STRING]; /* Flawfinder: ignore */
+ char valuestr[MAX_STRING]; /* Flawfinder: ignore */
keyword[0] = '\0';
valuestr[0] = '\0';
while(!feof(fp))
{
fgets(buffer, MAX_STRING, fp);
- sscanf(buffer, " %254s %254s", keyword, valuestr);
+ sscanf( /* Flawfinder: ignore */
+ buffer, " %254s %254s", keyword, valuestr);
if(!keyword)
{
continue;
@@ -473,7 +474,8 @@ bool LLViewerInventoryCategory::importFileLocal(FILE* fp)
{
//strcpy(valuestr, buffer + strlen(keyword) + 3);
// *NOTE: Not ANSI C, but widely supported.
- sscanf(buffer, " %254s %254[^|]", keyword, valuestr);
+ sscanf( /* Flawfinder: ignore */
+ buffer, " %254s %254[^|]", keyword, valuestr);
mName.assign(valuestr);
LLString::replaceNonstandardASCII(mName, ' ');
LLString::replaceChar(mName, '|', ' ');
@@ -497,7 +499,7 @@ bool LLViewerInventoryCategory::importFileLocal(FILE* fp)
bool LLViewerInventoryCategory::exportFileLocal(FILE* fp) const
{
- char uuid_str[UUID_STR_LENGTH];
+ char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */
fprintf(fp, "\tinv_category\t0\n\t{\n");
mUUID.toString(uuid_str);
fprintf(fp, "\t\tcat_id\t%s\n", uuid_str);