aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llpermissions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llinventory/llpermissions.cpp')
-rw-r--r--linden/indra/llinventory/llpermissions.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llinventory/llpermissions.cpp b/linden/indra/llinventory/llpermissions.cpp
index ae4360a..925b68f 100644
--- a/linden/indra/llinventory/llpermissions.cpp
+++ b/linden/indra/llinventory/llpermissions.cpp
@@ -526,7 +526,11 @@ BOOL LLPermissions::importFile(FILE* fp)
526 526
527 while (!feof(fp)) 527 while (!feof(fp))
528 { 528 {
529 fgets(buffer, BUFSIZE, fp); 529 if (fgets(buffer, BUFSIZE, fp) == NULL)
530 {
531 buffer[0] = '\0';
532 }
533
530 sscanf( /* Flawfinder: ignore */ 534 sscanf( /* Flawfinder: ignore */
531 buffer, 535 buffer,
532 " %255s %255s", 536 " %255s %255s",