aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolbump.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpoolbump.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/lldrawpoolbump.cpp b/linden/indra/newview/lldrawpoolbump.cpp
index 28e60f1..befcc70 100644
--- a/linden/indra/newview/lldrawpoolbump.cpp
+++ b/linden/indra/newview/lldrawpoolbump.cpp
@@ -113,9 +113,10 @@ void LLStandardBumpmap::restoreGL()
113 113
114 while( !feof(file) && (LLStandardBumpmap::sStandardBumpmapCount < (U32)TEM_BUMPMAP_COUNT) ) 114 while( !feof(file) && (LLStandardBumpmap::sStandardBumpmapCount < (U32)TEM_BUMPMAP_COUNT) )
115 { 115 {
116 // *NOTE: This buffer size is hard coded into scanf() below.
116 char label[2048] = ""; 117 char label[2048] = "";
117 char bump_file[2048] = ""; 118 char bump_file[2048] = "";
118 fields_read = fscanf( file, "\n%s %s", label, bump_file); 119 fields_read = fscanf( file, "\n%2047s %2047s", label, bump_file);
119 if( EOF == fields_read ) 120 if( EOF == fields_read )
120 { 121 {
121 break; 122 break;