aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llsaleinfo.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llinventory/llsaleinfo.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
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",