diff options
author | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
commit | ad94bca0d273869d6358719f4dbd515a905acd26 (patch) | |
tree | 52ae9f056f3dd6a938434d45d5295aef87e77e0a /indra/win_crash_logger | |
parent | 787ac69d75dbbd8ad79c32a5de54603351523eae (diff) |
merge -r 56696:57082 Branch_1-13-2
Diffstat (limited to 'indra/win_crash_logger')
-rw-r--r-- | indra/win_crash_logger/win_crash_logger.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/win_crash_logger/win_crash_logger.cpp b/indra/win_crash_logger/win_crash_logger.cpp index decb70d822..fde3bdf7ba 100644 --- a/indra/win_crash_logger/win_crash_logger.cpp +++ b/indra/win_crash_logger/win_crash_logger.cpp @@ -477,6 +477,7 @@ void send_crash_report() db_filep = new LLFileEncoder("DB", db_file_name.c_str()); // Get the filename of the SecondLife.log file + // *NOTE: This buffer size is hard coded into scanf() below. char tmp_sl_name[256]; tmp_sl_name[0] = '\0'; @@ -487,7 +488,10 @@ void send_crash_report() // Look for it in the debug_info.log file if (db_filep->isValid()) { - sscanf((const char *)db_filep->mBuf, "SL Log: %[^\r\n]", tmp_sl_name); + sscanf( + (const char*)db_filep->mBuf, + "SL Log: %255[^\r\n]", + tmp_sl_name); } else { |