aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llsaleinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llinventory/llsaleinfo.cpp')
-rw-r--r--linden/indra/llinventory/llsaleinfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llinventory/llsaleinfo.cpp b/linden/indra/llinventory/llsaleinfo.cpp
index debb092..0258259 100644
--- a/linden/indra/llinventory/llsaleinfo.cpp
+++ b/linden/indra/llinventory/llsaleinfo.cpp
@@ -170,7 +170,11 @@ BOOL LLSaleInfo::importFile(FILE* fp, BOOL& has_perm_mask, U32& perm_mask)
170 valuestr[0] = '\0'; 170 valuestr[0] = '\0';
171 while(success && (!feof(fp))) 171 while(success && (!feof(fp)))
172 { 172 {
173 fgets(buffer, MAX_STRING, fp); 173 if (fgets(buffer, MAX_STRING, fp) == NULL)
174 {
175 buffer[0] = '\0';
176 }
177
174 sscanf( /* Flawfinder: ignore */ 178 sscanf( /* Flawfinder: ignore */
175 buffer, 179 buffer,
176 " %254s %254s", 180 " %254s %254s",