aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerinventory.cpp')
-rw-r--r--linden/indra/newview/llviewerinventory.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerinventory.cpp b/linden/indra/newview/llviewerinventory.cpp
index f24b7c7..6372ba8 100644
--- a/linden/indra/newview/llviewerinventory.cpp
+++ b/linden/indra/newview/llviewerinventory.cpp
@@ -460,7 +460,11 @@ bool LLViewerInventoryCategory::importFileLocal(FILE* fp)
460 valuestr[0] = '\0'; 460 valuestr[0] = '\0';
461 while(!feof(fp)) 461 while(!feof(fp))
462 { 462 {
463 fgets(buffer, MAX_STRING, fp); 463 if (fgets(buffer, MAX_STRING, fp) == NULL)
464 {
465 buffer[0] = '\0';
466 }
467
464 sscanf( /* Flawfinder: ignore */ 468 sscanf( /* Flawfinder: ignore */
465 buffer, " %254s %254s", keyword, valuestr); 469 buffer, " %254s %254s", keyword, valuestr);
466 if(0 == strcmp("{",keyword)) 470 if(0 == strcmp("{",keyword))