diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/lldrawpoolbump.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolbump.cpp | 3 |
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; |