aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_crash_logger/mac_crash_logger.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/mac_crash_logger/mac_crash_logger.cpp
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-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 'linden/indra/mac_crash_logger/mac_crash_logger.cpp')
-rw-r--r--linden/indra/mac_crash_logger/mac_crash_logger.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/mac_crash_logger/mac_crash_logger.cpp b/linden/indra/mac_crash_logger/mac_crash_logger.cpp
index 177a4b5..372050d 100644
--- a/linden/indra/mac_crash_logger/mac_crash_logger.cpp
+++ b/linden/indra/mac_crash_logger/mac_crash_logger.cpp
@@ -330,9 +330,13 @@ int main(int argc, char **argv)
330 db_filep = new LLFileEncoder("DB", db_file_name.c_str()); 330 db_filep = new LLFileEncoder("DB", db_file_name.c_str());
331 331
332 // Get the filename of the SecondLife.log file 332 // Get the filename of the SecondLife.log file
333 char tmp_sl_name[MAX_PATH]; 333
334 // *NOTE: changing the size of either of these buffers will
335 // require changing the sscanf() format string to correctly
336 // account for it.
337 char tmp_sl_name[LL_MAX_PATH];
334 tmp_sl_name[0] = '\0'; 338 tmp_sl_name[0] = '\0';
335 char tmp_space[256]; 339 char tmp_space[MAX_STRING];
336 tmp_space[0] = '\0'; 340 tmp_space[0] = '\0';
337 341
338 // Look for it in the debug_info.log file 342 // Look for it in the debug_info.log file
@@ -340,7 +344,11 @@ int main(int argc, char **argv)
340 { 344 {
341 // This was originally scanning for "SL Log: %[^\r\n]", which happily skipped to the next line 345 // This was originally scanning for "SL Log: %[^\r\n]", which happily skipped to the next line
342 // on debug logs (which don't have anything after "SL Log:" and tried to open a nonsensical filename. 346 // on debug logs (which don't have anything after "SL Log:" and tried to open a nonsensical filename.
343 sscanf(db_filep->mBuf.c_str(), "SL Log:%[ ]%[^\r\n]", tmp_space, tmp_sl_name); 347 sscanf(
348 db_filep->mBuf.c_str(),
349 "SL Log:%254[ ]%1023[^\r\n]",
350 tmp_space,
351 tmp_sl_name);
344 } 352 }
345 else 353 else
346 { 354 {