aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/win_crash_logger
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/win_crash_logger
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/win_crash_logger')
-rw-r--r--linden/indra/win_crash_logger/win_crash_logger.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/win_crash_logger/win_crash_logger.cpp b/linden/indra/win_crash_logger/win_crash_logger.cpp
index 3aa41d0..effe56c 100644
--- a/linden/indra/win_crash_logger/win_crash_logger.cpp
+++ b/linden/indra/win_crash_logger/win_crash_logger.cpp
@@ -496,6 +496,7 @@ void send_crash_report()
496 db_filep = new LLFileEncoder("DB", db_file_name.c_str()); 496 db_filep = new LLFileEncoder("DB", db_file_name.c_str());
497 497
498 // Get the filename of the SecondLife.log file 498 // Get the filename of the SecondLife.log file
499 // *NOTE: This buffer size is hard coded into scanf() below.
499 char tmp_sl_name[256]; 500 char tmp_sl_name[256];
500 tmp_sl_name[0] = '\0'; 501 tmp_sl_name[0] = '\0';
501 502
@@ -506,7 +507,10 @@ void send_crash_report()
506 // Look for it in the debug_info.log file 507 // Look for it in the debug_info.log file
507 if (db_filep->isValid()) 508 if (db_filep->isValid())
508 { 509 {
509 sscanf((const char *)db_filep->mBuf, "SL Log: %[^\r\n]", tmp_sl_name); 510 sscanf(
511 (const char*)db_filep->mBuf,
512 "SL Log: %255[^\r\n]",
513 tmp_sl_name);
510 } 514 }
511 else 515 else
512 { 516 {